Angular Material Table Dynamic Columns without model

I found solution 🙂
It is very very easy but i could’t see at first 🙂
only like that :

        <mat-cell *matCellDef="let element "> {{element[disCol]}}
        </mat-cell>

I must use {{element[disCol]}} only in HTML.

Now , everything is ok:)

Leave a Comment