To get auto increment index value to the next pages.
([Page Index] * [Page Size] + [row Index + 1])
Table's td cell loop source code
<ng-container matColumnDef="id">
<th mat-header-cell *matHeaderCellDef mat-sort-header> No.</th>
<td mat-cell *matCellDef="let item; let i = index">
{{ (paginatorRef.pageIndex * paginatorRef.pageSize) + (i + 1) }}
…
Top comments (0)