Skip to content

$routeChangeStart and other such events are no longer triggered #113

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

Closed
elliott2081 opened this issue May 2, 2013 · 2 comments
Closed

Comments

@elliott2081
Copy link

After switching over to using $stateProvider instead of $routeProvider, events such as $routeChangeStart are no longer triggered.

It seems like there should be an analogous event that is triggered for state changes.

Is there a workaround to this issue that anyone knows of??? Being able to do stuff before the route actually changes and the template loads is pretty essential.

@ksperling
Copy link
Contributor

$state triggers $stateChangeStart / $stateChangeSuccess / $stateChangeError. If you depend on the ui.compat module you'll also get some $route* events, even though that back compat support is not complete yet.

@ksperling
Copy link
Contributor

Closing this as duplicate of #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants