Skip to content

Commit 0aa223f

Browse files
authored
docs(material/table): fix table formatting in ngFor example (#23158)
Fixes a bug in the example of Angular Material `mat-table` with columns generated via ngFor. The fix changes the tags over to native table selectors, which brings the example into alignment with other examples of `mat-table` usage and allows for Angular Material formatting to apply.
1 parent 54218d6 commit 0aa223f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
</td>
99
</ng-container>
1010

11-
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
12-
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
11+
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
12+
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
1313
</table>

0 commit comments

Comments
 (0)