Let suppose i have elements array containing 2 items.
var elements = [{ _id: 1, name: 'Paul Walker' },
{ _id: 2, name: 'Lisa' }];
Then i have arrayelements array containing elements array
var arrayelements = [];
arrayelements.push(elements);
i know i can bind elements array directly to datasource but how can i bind the arrayelemnts array to datasource of mat-table to show the content of elements array.
this.dataSource = new MatTableDataSource(arrayelements);
I tried this STACKBLITZ but unable to get all items in elements array