title: *matCellDef, *matHeaderCellDef and *ngIf in the same container
body: <p>I'm trying to show a part of a row (which are buttons) of my table based on some boolean value but it only seemed to work if I put it on the button level.</p>
  
  <p>I've this code:</p>
  
  <pre><code>    &lt;ng-container matColumnDef="myCol"&gt;
        &lt;th class="table-column" mat-header-cell *matHeaderCellDef&gt; myCol &lt;/th&gt;
        &lt;td mat-cell *matCellDef="let data"&gt;
          &lt;button *ngIf="data.someBoolean" mat-icon-button color="warn"&gt;
            &lt;mat-icon class="mat-18"&gt;delete&lt;/mat-icon&gt;
          &lt;/button&gt;
          &lt;button *ngIf="data.someBoolean" mat-icon-button color= "warn"&gt;
            &lt;mat-icon class="mat-18"&gt;create&lt;/mat-icon&gt;
          &lt;/button&gt;
        &lt;/td&gt;
      &lt;/ng-container&gt;
  </code></pre>
  
  <p>this works but is repetitive. Putting the <code>*ngIf="data.someBoolean"</code> on the container level didn't work. Any ideas how to fix this?  </p>