I am using UI Router in my angular app. I am trying to integrate state change
events, but they are not firing on state change. Everything else is working fine a
StateChange events has been deprecated for ui.router >= 1.0
for the new ui.router
use the following
StateChangeSuccess
$transitions.onSuccess({}, function() {
console.log("statechange success");
});
StateChangeStart
$transitions.onStart({}, function(trans) {
console.log("statechange start");
});
Check this migration guide for more information