How can I inject dynamic values as I did with "id" in material sort? When I try using interpolation mat-sort-header results in an error - Can't bind to 'mat-sort-header' since it isn't a known property of 'th'
The table gets built out dynamically.
<table matSort (matSortChange)="sortData($event)">
<tr>
<th mat-sort-header="{{mapped.id}}" id="{{mapped.id}}">{{mapped.header}}</th>
</tr>...
</table>
I'm using import { Sort } from '@angular/material';
And it's taken from https://material.angular.io/components/sort/overview
thanks very much