Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am getting "The pipe 'filterBy' could not be found" #70

Open
jmall opened this issue Oct 15, 2018 · 3 comments
Open

I am getting "The pipe 'filterBy' could not be found" #70

jmall opened this issue Oct 15, 2018 · 3 comments

Comments

@jmall
Copy link

jmall commented Oct 15, 2018

Uncaught Error: Template parse errors:
The pipe 'filterBy' could not be found ("
<li *ngFor="let [ERROR ->]item of catalogStore.catalog | async | filterBy: searchTerm ">
<mat-card class="c"): ##### Bug Report or Feature Request (mark with an x)

@ruudboon
Copy link

ruudboon commented Nov 2, 2018

Seeing this issue also under Angular 6. Could this be related to lazy loaded pages?

@ealipio
Copy link

ealipio commented Feb 3, 2019

@ruudboon I have an angular 7 application and I'm not using lazy loaded page and I have been strugling with this issue as well. So maybe not is related to lazy loaded pages.

@nazmul-pro
Copy link

@ruudboon Follow these steps:

  1. Import FilterPipeModule in associated module where you used this filter
  2. Initialize search variable with attribute with empty value. example: this.search = {'name': ' '} in component
  3. Use search.name in ngModel in search input field. example: <input placeholder="Search for user..." [(ngModel)]="search.name">
  4. Use filterBy in ngFor. example: <div *ngFor="let user of users | filterBy:search">

And I think you need only step 1 from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants