Hi
How the below code works
<td mat-cell *matCellDef="let element"> {{element[col]}} </td>
<ng-container [matColumnDef]="col" *ngFor="let col of displayedColumns"> <th mat-header-cell *matHeaderCellDef> {{col}} </th> <td mat-cell *matCellDef="let element"> {{element[col]}} </td> </ng-container>
Thanks