Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BillBrower opened this issue Aug 19, 2018 · 1 comment
Open

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

BillBrower opened this issue Aug 19, 2018 · 1 comment

Comments

@BillBrower
Copy link

I am having an issue very similar to #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).

@Redsandro
Copy link

Same problem here. There are some other binding problems.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants