You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 20, 2020. It is now read-only.
I've come across an issue when using sticky states (with deep state redirect) and passing objects as state parameters via the 'params' property of a state. The initial transition to the sticky state works well, but when you transition away and then come back to the sticky state, the view reloads and the controller re-runs (thus losing any changes made on that scope/view). This issue only happens when $stateParams contains a javascript object. Using only primitive params on the URL works fine, but there are cases when we need to pass complex objects to a state.
You will see the issue when you follow these steps:
(Initial state is tabs.account.stuff)
Enter text into the input box underneath "Here's my stuff"
Click on the 'Survey' tab
Click back to the 'Account' tab, which goes back to stuff because of DSR
(the input becomes empty because the view and controller get reloaded even though it's part of a sticky/dsr group of states)
My plunker changed the following three lines of code...