christopherthielen / ui-router-extras

THIS PROJECT IS NO LONGER MAINTAINED -- Extras for UI-Router for AngularJS. Sticky States (a.k.a. parallel states), Deep State Redirect (for tab-like navigation), Future States (async state definition)
http://christopherthielen.github.io/ui-router-extras/
MIT License
917 stars 211 forks source link

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

Open moosi opened 7 years ago

moosi commented 7 years ago

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