You can listen for ‘$stateChangeSuccess’ and set state accrodingly. For example –
$rootScope.$on('$stateChangeSuccess',
function(event, toState, toParams, fromState, fromParams) {
$state.current = toState;
}
)
You can listen for ‘$stateChangeSuccess’ and set state accrodingly. For example –
$rootScope.$on('$stateChangeSuccess',
function(event, toState, toParams, fromState, fromParams) {
$state.current = toState;
}
)