Currently, I am utilizing the dirPaginate directive to handle pagination within my Angular application. While it is functioning correctly overall, I have encountered an issue where each page displays 10 records but the $index values are not incrementing as expected. Instead of showing ranges like 11-20, 21-30, and so on for subsequent pages, it continues with 1-10. Can someone assist me in resolving this matter? Below is a snippet of my code:
<tbody dir-paginate="wagedtl in listWagemasterdtls | orderBy:orderByField:reverseSort | filter : detailsfilter |itemsPerPage:10">
<tr><td class="hidden-xs">{{ wagedtl.wageTypeMstrID}}</td><td>{{wagedtl.wageTypeMstrNm}}</td></tr>
<dir-pagination-controls max-size="5" direction-links="true" boundary-links="true"></dir-pagination-controls>