Skip to content

Commit d62aeed

Browse files
authored
docs(material/table): fix table example tags (#22826)
Fix table example that is mixing the table and flex table selectors - switch to use the native table selectors
1 parent fa616b9 commit d62aeed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components-examples/material/table/table-generated-columns/table-generated-columns-example.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<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>
2+
<ng-container *ngFor="let column of columns" [matColumnDef]="column.columnDef">
3+
<th mat-header-cell *matHeaderCellDef>
44
{{column.header}}
5-
</mat-header-cell>
6-
<mat-cell *cdkCellDef="let row">
5+
</th>
6+
<td mat-cell *matCellDef="let row">
77
{{column.cell(row)}}
8-
</mat-cell>
8+
</td>
99
</ng-container>
1010

1111
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>

0 commit comments

Comments
 (0)