We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa616b9 commit d62aeedCopy full SHA for d62aeed
src/components-examples/material/table/table-generated-columns/table-generated-columns-example.html
@@ -1,11 +1,11 @@
1
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8 demo-table">
2
- <ng-container *ngFor="let column of columns" [cdkColumnDef]="column.columnDef">
3
- <mat-header-cell *cdkHeaderCellDef>
+ <ng-container *ngFor="let column of columns" [matColumnDef]="column.columnDef">
+ <th mat-header-cell *matHeaderCellDef>
4
{{column.header}}
5
- </mat-header-cell>
6
- <mat-cell *cdkCellDef="let row">
+ </th>
+ <td mat-cell *matCellDef="let row">
7
{{column.cell(row)}}
8
- </mat-cell>
+ </td>
9
</ng-container>
10
11
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
0 commit comments