AngularJS - ng-repeat to assign/generate a new unique ID

后端 未结 3 495
离开以前
离开以前 2020-12-14 07:20

Im using a simple ng-repeat to generate a list of countries. Within each list is a hidden row/div that can be expanded and collapsed.

The issue that i a

3条回答
  •  佛祖请我去吃肉
    2020-12-14 07:35

    {{$index+1}} will show 1-5 for every page of pagination in order to change serial no as per page no of pagination, use {{$index+curPage*5+1}}, where curPage is your current page in pagination.

提交回复
热议问题