title: How to use two mat-pagination in a single page to get different page index
body: <p>I am facing an issue when using a mat-pagination for my angular 5 applications where I have two tables with pagination. For one table the pagination is working fine. But when there is change in the second pagination i.e. When I add a some comments to the table the <code>pageindex</code> of the first table pagination is getting changed. </p>
  
  <p>How to stop the first pagination <code>pageindex</code> value from changing when I update the second?</p>
  
  <p>I have also tried using <code>viewchildren</code> instead of <code>viewchild</code> but I am not able to get the <code>pageindex</code>.</p>