Hi Folks,
I am trying to filter my search based the query into search bar, below is my code -
Error -
- The pipe ‘piper’ could not be found
HTML -
<ion-item *ngFor="let post of contactsfound | piper: searchContacts")>
<a style="border-radius: 50%;background: #43A047;" item-end ion-button icon-only>
<ion-icon style="color:#fff" name='ios-call' is-active="false"></ion-icon>
</a>
<h2>{{post.displayName}}</h2>
<p>{{post.phoneNumbers[0].value}}</p>
</ion-item>
TS -
import { Component, Injectable, Pipe } from '@angular/core';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
@Pipe({
name: 'piper',
pure: false
})
@Injectable()
Am i missing something pls help.