Parameter in directive * ngFor Angular 6

5

Good morning.

I have a component that has 3 input parameters

1-json_columns

2-json_filas

3-name_filter

how can I do so that the name_filter is indicated as the pipe to filter in that data group.

component.ts

@Input('json_columnas') columnas:[{}];
@Input('json_filas') filas:[{}];

//Pipe para buscar
@Input('nombre_filtro') pipeFiltro:string;

component.html

...

<tr *ngFor="let item of filas | pipeFiltro: itemABuscar; let i=index" >
{{item.nombre}}
</tr>
    
asked by Luis Fernando Morales Diaz 30.08.2018 в 18:05
source

0 answers