title: how to get updated Viewchildren reference after sorting in angular MatTable
body: <p>I am working on angular material table and want to get tableRow reference using <code>ViewChildren</code> and <code>ViewContainerRef</code>.</p>
  
  <p>Here Html Snippet</p>
  
  <p><code>&lt;tr mat-row *matRowDef="let row; columns: displayedColumns;" #tableRows &gt;&lt;/tr&gt;</code></p>
  
  <p>and TS snippet</p>
  
  <p><code>@ViewChildren('tableRows', {read: ViewContainerRef}) rowContainers</code></p>
  
  <p>I am able to get table rows refrence but problem is that when I sort, I am not able to get updated DOM reference in <code>rowContainers</code> variables.</p>
  
  <p>I couldn't find any way to refresh <code>rowContainers</code> variable.</p>
  
  <p>Does anybody have idea how to refresh <code>ViewChildren</code> variable ?</p>
  
  <p>You can see behavior in <a href="https://stackblitz.com/edit/angular-mattable-viewcontainerref" rel="nofollow noreferrer">stackblitz </a>.</p>