0

After npm i ng2-search-filter and importing to app.module.ts, filter pipe not working. 'the pipe 'filter' could not be found.

//app.module.ts
import { Ng2SearchPipeModule } from 'ng2-search-filter';
//at NgModule
imports: [Ng2SearchPipeModule],


//search.html
<ion-searchbar class="p-0" [(ngModel)]="term"></ion-searchbar>
  <ion-list>
    <ion-item class="p-0"*ngFor="let remittance of filterData | filter:term">
     </ion-item>
  </ion-list>

/// got an error in '| filter:term' - The pipe 'filter' could not be found
soybeans
  • 11
  • 6

0 Answers0