Skip to content
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

$stateChangeSuccess not working after update #3458

Closed
erperejildo opened this issue Jun 3, 2017 · 1 comment
Closed

$stateChangeSuccess not working after update #3458

erperejildo opened this issue Jun 3, 2017 · 1 comment

Comments

@erperejildo
Copy link

I have updated my project with new project name (no further changes) and this is not working anymore:

$rootScope.$on('$stateChangeSuccess', (event, toState, toParams, fromState, fromParams, error) => {
           console.log('route changed');
        });

Using Angular 1.x with Meteor

@erperejildo
Copy link
Author

erperejildo commented Jun 4, 2017

Fixed with this:

$transitions.onSuccess(
            { to: '*', from: '*' },
            (trans) => console.log(trans.$to().name)
        );

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

1 participant