title: Data table inside of an expandable data table in Angular Material
body: <p>I have made an expandable data table and I want to show another data table inside of the expanded row. This is my expanded row template:</p>
  
  <pre><code>&lt;ng-template #tpl let-element&gt;
  &lt;div class="mat-row detail-row"&gt;
      &lt;mat-table #table1 [dataSource]="element.details" matSort&gt;
  
          &lt;ng-container matColumnDef="taste"&gt;
              &lt;mat-header-cell *matHeaderCellDef mat-sort-header&gt; Taste &lt;/mat-header-cell&gt;
              &lt;mat-cell *matCellDef="let detail"&gt; {{detail.taste}} &lt;/mat-cell&gt;
          &lt;/ng-container&gt;
          &lt;ng-container matColumnDef="water"&gt;
              &lt;mat-header-cell *matHeaderCellDef mat-sort-header&gt; Water &lt;/mat-header-cell&gt;
              &lt;mat-cell *matCellDef="let detail"&gt; {{detail.water}} &lt;/mat-cell&gt;
          &lt;/ng-container&gt;
  
          &lt;mat-header-row *matHeaderRowDef="detailsColumns; sticky: true"&gt;&lt;/mat-header-row&gt;
          &lt;mat-row *matRowDef="let row; columns: detailsColumns;" matRipple class="element-row"&gt;
          &lt;/mat-row&gt;
      &lt;/mat-table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>When clicked on an row of Outer Table the Inner table works fine but it doesn't show any data inside.</p>
  
  <p>How to make it work?</p>