AngularJS Paging orderBy only affects displayed page

前端 未结 1 1728
我寻月下人不归
我寻月下人不归 2021-02-08 01:48

Can anyone point me in the right direction to figure out a way to fix the way paging and orderBy work together in Angular?

Currently, I can orderBy and page the results

相关标签:
1条回答
  • 2021-02-08 02:28

    If you have complete client-side paging, then you can just change order of filters:

    <li ng-repeat="item in data | orderBy:orderBy:reverse | startFrom:currentPage*pageSize | limitTo:pageSize ">
    

    Is that what you expected?

    0 讨论(0)
提交回复
热议问题