ember-cli-pagination
ember-cli-pagination copied to clipboard
Nested keys don't seem to be supported in params.paramMapping
I am having an issue very similar to https://github.com/mharris717/ember-cli-pagination/issues/206.
That said the meta portion my response is a little bit different:
"meta": {
"pagination": {
"page": 1,
"pages": 6,
"count": 26
}
}
I am using params.paramMapping in my route's model function:
params.paramMapping = {
page: "page",
perPage: "page_size",
total_pages: "pagination.pages"
};
But it doesn't seem to work, I still get this in the console:
no total_pages in meta response
pagination: Object { page: 1, pages: 6, count: 26 }
and my page never loads (although that might be a separate issue. I'm using the isFulfilled attribute on the paged-remote-array to display a spinner).
Same problem here. There are some other binding problems.
