How to do paging in AngularJS?

后端 未结 21 1912
轮回少年
轮回少年 2020-11-22 07:17

I have a dataset of about 1000 items in-memory and am attempting to create a pager for this dataset, but I\'m not sure on how to do this.

I\'m using a custom filter

21条回答
  •  醉话见心
    2020-11-22 07:53

    I recently implemented paging for the Built with Angular site. You chan checkout the source: https://github.com/angular/builtwith.angularjs.org

    I'd avoid using a filter to separate the pages. You should break up the items into pages within the controller.

提交回复
热议问题