ember-cli-pagination icon indicating copy to clipboard operation
ember-cli-pagination copied to clipboard

Nested keys don't seem to be supported in params.paramMapping

Open BillBrower opened this issue 7 years ago • 1 comments

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).

BillBrower avatar Aug 19 '18 23:08 BillBrower

Same problem here. There are some other binding problems.

image

Redsandro avatar Oct 15 '19 12:10 Redsandro