I have a unique data structure that I need to present using mat-table
.
dataSource= [[1,2],[3,4],[5,6]]
In this structure, dataSource[0]
always serves as the heading, with the rest of the array items representing its rows.
Therefore, the expected output for the above data should be as follows:
1 2 Table Heading
3 4
5 6
Is it possible to achieve the above data structure using mat-table
? Any assistance is appreciated.
Note: I have reviewed the mat-table documentation but haven't found anything that addresses my specific needs.