Lets say I have a structure like below:
<my-table>
<my-row>
<my-col>Value 1</my-col>
<my-col>Value 2</my-col>
</my-row>
<my-row>
<my-col>Value 3</my-col>
<my-col>Value 4</my-col>
</my-row>
</my-table>
Now, after page render I would like to have a variable in my-table component with structure like that:
[
['Value 1', 'Value 2'],
['Value 3', 'Value 4']
]
And any changes which I do on this variable (sorting, filtering etc.) must be dynamically rendered.
How to achieve this?
//edit I cannot do this with nested *ngFor because I want to have other components inside my-col for example bootstrap progress bars etc.
Regards