I am interested to know the answer to this as well. Any help would be appreciated.
I do have an alternate solution for this (if you are in control of adding your own server API) and curious to see if anyone’s implemented something like this to get pagination working. In this example I’m trying to get pages for an “assessment search”.
App.AssessmentsPage = DS.Model.extend({
pageNumber: DS.attr('number'),
totalPages: DS.attr('number'),
searchFilter: DS.attr('string'), // reference purposes
assessments: DS.hasMany('App.Assessment')
})
You could hit an API like so: http://baseurl/AssessmentPage?page=2&filter=XYZ
, which can internally reroute in the server to GET /assessments?page=2&filter=XYZ
and package up the results nicely.
Having said that, a “proper” way of doing pagination would be nice.