Skip to content

"Missing required parameter…" in child state with definition.params #1073

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

Closed
nicksloan opened this issue May 12, 2014 · 1 comment
Closed
Labels

Comments

@nicksloan
Copy link

Here's a plunker demonstrating the issue: http://plnkr.co/edit/NxL5hJsxlaUSTLSaRAEp?p=preview

Creating a child state that uses definition.params to define additional parameters for a URL-based parent state that has its own parameters doesn't work.

In 0.2.10, this worked, but you had to copy ancestor parameters into the child state's definition.params list. In master, it doesn't work with or without copying them.

I'd be happy to dig into this if someone can give me a bit of guidance on getting started.

@nicksloan
Copy link
Author

Digging into this a bit more, the code seems to want params to be an object with param names as the keys. I'm not sure about the values just yet.

Specifying params as {p: true, c: true} worked for me on plunkr, but is leading to maximum recursion issues in a real world example with more parameters on the parent.

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

No branches or pull requests

2 participants