Hi,
I'm generating a table to display my data but only the first array is displayed. I'm using MatTableDataSource and to receive data I use .pipe. But still only 1 array of data is returned. Could someone tell me where I'm going wrong?
my cod
fail.component.ts
requisicoes!: Array<IRequisicaoFail>;
//Propriedades públicas
loading: boolean = true;
requisicoes$ = this.requisicoesService.failImp().pipe(tap(() => this.loading = false));
@ViewChild('TABLE') table!: ElementRef;
displayedColumns: string[] = ['cpha', 'processo', 'data_nomeacao', 'vara', 'cpf', 'nit', 'advogado', 'motivo'];
dataSource = new MatTableDataSource(this.requisicoes);
@ViewChild(MatPaginator) paginator!: MatPaginator;
@ViewChild(MatSort) sort!: MatSort;
constructor(
private title: Title,
private requisicoesService: RequisicoesService,
) {
super();
}```