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