how to make a server side pagination with angularjs $resource ?

前端 未结 1 911
心在旅途
心在旅途 2020-12-29 10:55

I am trying to display a table with a large collection of elements. I want to paginate the table and load only the elements displayed on the current page. Now, the json is l

相关标签:
1条回答
  • 2020-12-29 11:20

    Based on the AngularJS $resource documentation, it should be possible to do this:

    List.query({offset: 0, limit: 100, sortType: 'DESC' }, function(data, responseHeaders) {
      // you can access headers here
    });
    
    0 讨论(0)
提交回复
热议问题