Skip to content

Commit 3d27215

Browse files
subsetdhtamysorto
authored andcommitted
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. (cherry picked from commit 0aa223f)
1 parent 0884cc9 commit 3d27215

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)