Update pagination in AngularJS after filtering

前端 未结 4 1458
情深已故
情深已故 2021-01-30 10:51

I already have the pagination implemented. Now I want the pagination to be updated after filtering my results.

The form:



        
4条回答
  •  -上瘾入骨i
    2021-01-30 11:37

    You could simply use this directive instead:

    https://github.com/michaelbromley/angularUtils/tree/master/src/directives/pagination

    It offers pagination with a filter while keeping the code nice and clean.

    Kudos to michaelbromley for the great code.

提交回复
热议问题