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 has been archived by the owner on Sep 20, 2020. It is now read-only.
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.
Click the Go back to app.survey on the property details page
Notice that the controller is reloaded
This issue is realted to #239. but you fixed that scenario. I'm not sure what I'm doing differently to be reproducing this issue. I'm using the latest ui-router legacy and ui-router-extras
Thanks for help.
The text was updated successfully, but these errors were encountered:
I discovered that this is happens when trying to navigate to the saved UI sticky state without the exact same params that are specified in .state(). In other words, if it detects that the stateParams have changed, it will reload. If upon initialization you create the state with certain parameters, the next time you navigate to it you should specify the exact same parameters.
Also in issue #273, there is an interest approach to prevent having to pass the same parameters each time, and that is to create an intermediate state.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See my plunk here: http://plnkr.co/edit/b9zpVyApL6tx2pe8XoZz?p=preview
(Initial state is
app.survey
)Property Details Page
tabGo back to app.survey
on the property details pageThis issue is realted to #239. but you fixed that scenario. I'm not sure what I'm doing differently to be reproducing this issue. I'm using the latest
ui-router legacy
andui-router-extras
Thanks for help.
The text was updated successfully, but these errors were encountered: