Hi i have a component where in the html have a code like
<div *ngFor="let group of groups; index as index">
<div *ngIf="group0.lenght > 0">
<mat-table [datasource]="'group'+index">
</mat-table>
</div>
</div>
before i have a code that filter the items by the groupid like a foreign key
group0 = this.items.filter(x => x.group_uuid == this.groups[i].uuid)
groupn = this.items.filter(x => x.group_uuid == this.groups[n].uuid)
but the problem is when the table appears, i got the next error: ERROR Error: Provided data source did not match an array, Observable, or DataSource
any idea? thanks in advance
datasourceinstead of an array. It's the same as trying to call a variable by string with name of the variable. As long thec = a + bnot equal toc = 'a' + 'b'code above will not be working.group0in line 2?