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

parent tag not working for params in state #157

Open
maxhan247 opened this issue Jul 26, 2016 · 2 comments
Open

parent tag not working for params in state #157

maxhan247 opened this issue Jul 26, 2016 · 2 comments

Comments

@maxhan247
Copy link

maxhan247 commented Jul 26, 2016

http://plnkr.co/U8rrmORZiS7xyLBM5wtp

In my plnkr, the "home", "element" and "detail" are parallel states, and I build parent-child relationship use parent tag. The requirement is the URL shouldn't show any id, so I send the id by params: {idElement: null}.

But the parent tag seems not work in this case. When I go to detail, I lose params in parent state.

breadcrumb

@mateatslc
Copy link

ui-sref style dynamic links seem to be broken currently, not sure if there is anything in the works to fix them...
I came up with a workaround where I default state params using the $stateParams service.
I forked your plunker to demonstrate the fix:
http://plnkr.co/edit/8yQlDN8suimQAn0DWmuF?p=preview

@nmarcetic
Copy link

@mateatslc Not working on page refresh.

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

3 participants