title: Angular Material - Getting index of row in data table
body: <p>I am using the <code>MatTable</code> component from <a href="https://material.angular.io/components/table/overview" rel="noreferrer">Angular Material</a> to make a dynamic data table.</p>
  
  <p>I need to get the current position of a row. I can easily get the row on which the user clicked but I am unable to know its current position in the list (which depends on sort/filtering/pagination).</p>
  
  <p>Any idea? </p>