ui-router-extras icon indicating copy to clipboard operation
ui-router-extras copied to clipboard

Question: $stickyState.reset() ignores parameters?

Open moosi opened this issue 8 years ago • 0 comments

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

moosi avatar Oct 30 '16 23:10 moosi