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 have this line in my code:
$state.go('Home.edit', {id: response.id}, {notify: false});
Which I use just to change the URL in case the user goes to the wrong ID.
So if I go to /edit/222 and id 222 doesn't exist, it changes to /edit/ for example, without reloading the entire page.
But having this seems to break the sticky:true.
I have it working fine if this never happens. When the state change with Notify:false happens, it will refresh the state when I switch to a new state.. so instead of staying "sticky" and unchanged, it actually refreshes.
Any ideas how I can change the URL inside a sticky state, without causing a refresh on the next state change? If I don't use notify:false then the state will refresh, which I don't want. I just want to keep URL correct so if they press Refresh it will work correctly.
I have this line in my code:
$state.go('Home.edit', {id: response.id}, {notify: false});
Which I use just to change the URL in case the user goes to the wrong ID.
So if I go to /edit/222 and id 222 doesn't exist, it changes to /edit/ for example, without reloading the entire page.
But having this seems to break the sticky:true.
I have it working fine if this never happens. When the state change with Notify:false happens, it will refresh the state when I switch to a new state.. so instead of staying "sticky" and unchanged, it actually refreshes.
Any ideas how I can change the URL inside a sticky state, without causing a refresh on the next state change? If I don't use notify:false then the state will refresh, which I don't want. I just want to keep URL correct so if they press Refresh it will work correctly.