1.0.0 • Published 6 years ago
abhis-angular v1.0.0
Steps to use pipe:
Install using npm
Run `npm install abhis-angular`.
Import in your module
import { SearchModule } from 'abhis-angular'
@NgModule({
declarations: [
AppComponent
...
],
imports: [
BrowserModule,
SearchModule
....
],
providers: [],
bootstrap: [AppComponent]
})
Use
<input type="text" [(ngModel)]='searchText'>
<div *ngFor='let list of item | search:[searchText,0]'>
{{list}}
</div>
pass 0 : if you want to search by first character only
pass 1 : if you want to search in all character of word
Abhishek Verma