Closed
Description
Bug, feature request, or proposal:
Proposal
What is the expected behavior?
It'd be nice to have example(s) on how to use md-table
with dynamic columns.
What is the current behavior?
Currently all the examples are with hard coded columns, like this:
<!-- ID Column -->
<ng-container cdkColumnDef="userId">
<md-header-cell *cdkHeaderCellDef md-sort-header> ID </md-header-cell>
<md-cell *cdkCellDef="let row"> {{row.id}} </md-cell>
</ng-container>
<!-- Progress Column -->
<ng-container cdkColumnDef="progress">
<md-header-cell *cdkHeaderCellDef md-sort-header> Progress </md-header-cell>
<md-cell *cdkCellDef="let row"> {{row.progress}}% </md-cell>
</ng-container>