Skip to content
This repository has been archived by the owner on Sep 20, 2020. It is now read-only.

Question: $stickyState.reset() ignores parameters? #346

Open
moosi opened this issue Oct 30, 2016 · 0 comments
Open

Question: $stickyState.reset() ignores parameters? #346

moosi opened this issue Oct 30, 2016 · 0 comments

Comments

@moosi
Copy link

moosi commented Oct 30, 2016

I am using the reset function of stickyStates to wipe old states once the user clicks the back button of my app (ui-router-extras 0.0.14). Two example states:

name: 'example.post',
params: postId,
url: 'post/:postId'

name: 'example.profile',
params: profileId,
url: 'profile/:profileId'

and the following navigation path: post/1 - profile/1 - post/2 - "back button"

My app will execute $stickyState.reset('example.post', {postId: 2}) but it seems like it also resets the post state with id 1. Is this a bug or the following limitation from the faq:

"Q: Can I have multiple tabs of the same state with different parameters?"
"A: No, this is a limitation of ui-router, and ui-router-extras does not provide it."

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

No branches or pull requests

1 participant