Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70765

Pipes filter search not working, Am i missing something pls help

$
0
0

@champion007 wrote:

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.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70765

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>