I have a component that has 3 input parameters
- json_columns
- json_rows
- name_filter
How can I make it so the name_filter is set as the pipe to filter that group of data?
component.ts
@Input('json_columns') columns:[{}];
@Input('json_rows') rows:[{}];
//Pipe
@Input('name_filter') filter:string;
component.html
<tr *ngFor="let item of filas | filter: searchItem; let i=index" >
{{item.nombre}}
</tr>