Skip to content

Instantly share code, notes, and snippets.

@thuliumsystems
Last active October 15, 2021 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thuliumsystems/6e52c3ff51454a088925b7659ebfcf92 to your computer and use it in GitHub Desktop.
Save thuliumsystems/6e52c3ff51454a088925b7659ebfcf92 to your computer and use it in GitHub Desktop.
ion searchbar
<ion-searchbar placeholder="Pesquisar..." showCancelButton="focus" [(ngModel)]="filterHouse"></ion-searchbar>
<ion-item *ngFor="let h of houses | filter:filterHouse">
import { Ng2SearchPipeModule } from 'ng2-search-filter';
@NgModule({
imports: [
...
Ng2SearchPipeModule
],
})
filterHouse: string;
houses: any = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment