Need assistance with filtering an array using ngx-filter-pipe. I have managed to filter based on a single value condition, but I am unsure how to filter based on multiple values in an array. Any guidance would be appreciated.
Angular
<input type="text" id="search" class="form-control" name="search" [(ngModel)]="userFilter.name">
<tr *ngFor="let data of datas | filterBy: userFilter">
<td>{{data.name}}</td>
<td>{{data.age}}</td>
<td>{{data.country}}</td>
</tr>
TS
userFilter: any = { name: '' };
Data
datas:[
{ name:"abc", age:17, country:"US" },
{ name:"xyz", age:25, country:"India" }
]
How should I handle my ngModel if I want to include multiple parameters in userFilter?
Stackblitz: Similar Example