angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

General Query : $transitions.onSuccess doesnt fire on browser refresh #3767

Closed jonbonraki closed 4 years ago

jonbonraki commented 5 years ago
 $transitions.onSuccess({}, function(trans) {

        });

The above event doesn't fire when there is refresh on browser on router > 1.0.

  $scope.$on('$stateChangeSuccess', function (event, toState, toParams) {
        });

Where as in
$stateChangeSuccess used to fire even in refresh of browser for router version 0.4, is there a change or can you suggest a workaround to fire a transition event on refresh.

thanks

jonbonraki commented 5 years ago

any comments on above question?

nvurgaft commented 4 years ago

I've also encountered it when upgrading to v1.0.23. Explicitly writing the state name in the criteria object didn't help much either.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues may be reopened.

Thank you for your contributions.