UI-Router keeping url unchanged on $stateChangeError

293 views
Skip to first unread message

Ryan Zec

unread,
Apr 17, 2013, 9:33:04 AM4/17/13
to ang...@googlegroups.com
Sorry if this does not belong here however I have signed up as a member of the Angular UI group a few days ago but I still don't see the post button to submit a new post so I will post this question here (also this might be a general AngularJS question anyways).

I have been using ui-router for the past couple of days and it is working great so far (have not put it through anything complex yet).  Something I would like to know if it is possible (and I think that same thing happens with the standard AngularJS router) is that the fact that if a resolve is rejected, the url of the application still changes even though the page itself remain the same.  I was wondering if there is some way so that if a resolve is rejected, I can switch the url back to reflect the page it is on without actually trying to reload the controller and re-render everything?

This is not a huge deal as the functionality works as is however I feel it might be a little confusing that the url changes but the page itself does not (even with the message that I display on $stateChangeError event).
Reply all
Reply to author
Forward
0 new messages