I have a table with 100+ rows and dynamic columns.
<tr mat-header-row *matHeaderRowDef = "displayColumns; sticky: true"> </ tr>
<tr mat-row * matRowDef = "let row; columns: displayColumns"> </ tr>
Thus, if I change the displayColumns, angular will re-render the entire table(3+ sec).
Is there a solution for optimizing it? Or should I use display: hidden
for this?
And how can I animate the addition of columns?