I created table with *ngfor in angular. and put a search filter in this table. Code is below.
<tr *ngFor="let new of variables | orderBy: key: reverse | filter:term" style="width: 100%;">
<td *ngFor="let col of index" id="tablo_data">
{{new[col]}}
</td>
</tr>
this code does the search over the entire table. but I want to search in selected columns. Input type code below:
<div class="form-group">
<input type="text" class="form-control" placeholder="Search Here" [(ngModel)]="term">
</div>
and term define:
term: string;
all json data define is
variables: Variables[] = [];