-
Notifications
You must be signed in to change notification settings - Fork 3k
Transitioning to state without notifying stops transition to happen #1727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please post a plunkr that demonstrates the issue, thanks. |
I had the same issue with UI Router 0.2.15. I created a Gist with a MWE, as it is easier to play around with URL-based states. The example checks whether a user is logged in (statically false in the MWE) and the redirects to a login page. When setting notify to false, only the URL is updated, but the template content is not set - the ui-view element is not filled at all. |
@nateabele as there is an example now, would you please consider removing the label you've assigned? |
http://plnkr.co/edit/h3T8LK5o15zpRuIzrgFk?p=preview notify false prevents the stateChange events from firing, which effectively prevents the state change from happening. I'm not really sure if thats the expected behavior. @nateabele ? |
Nevermind. closing as a duplicate of #1158 |
Hi, in order to make a special transition that should not be intercepted by listening to
$stateChangeStart
event, i'm calling$state.go
with{notify: false}
options object.The problem is that the state is never transitioned to, only URL is updated. My version of uiRouter is 0.2.7. Can't update, sorry, since something stops working in the app around 0.2.10 (will try to check that in the near future, but not in the current timeframe available).
I would appreciate any suggestions in how to achieve my desired result.
Thanks in advance!
The text was updated successfully, but these errors were encountered: