I'm trying to use ng-if inside my md-table but I'm getting the error:
Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *
Here is my code for the template
<md-row *cdkRowDef="let row; columns: displayedColumns" (click)="viewNarrative(row)">
<md-cell *cdkCellDef="let row" *ngIf="!(authService.isAdmin())">
<button md-button (click)="viewNarrative(row)"><md-icon>toc</md-icon> Narrative</button>
<button md-button (click)="editDemographics(row)"><md-icon>edit</md-icon> Demographics</button>
<button md-button (click)="confirmDelete(row, $event)" style="line-height:normal"><md-icon>delete</md-icon> Delete</button>
</md-cell>
</md-row>
when I remove the *cdkCellDef="let row" directive I get the error: ERROR Error: No provider for CdkColumnDef!
so how can I implement the ng-if directive?