How can I give an HTML tag a conditional attribute which toggles depending on the state of a variable declared in the component file? I tried to give it a go unsuccessfully:
<th mat-header-cell *matHeaderCellDef {{new ? 'mat-sort-header' : ''}} >
In this case using *ngIf or ng-template is not appropriate due to the *matHeaderCellDef reference.
Thank you.