Registers a function to be injected and invoked during a transition between the matched 'to' and 'from' states,
when the matched 'to' state is being entered. This function is injected with the entering state's resolves.
This function can be injected with two additional special value:
$transition$: The current transition
$state$: The state being entered
param
See transitionCriteria in {@link ui.router.state.$transitionsProvider#on $transitionsProvider.on}.
param
See callback in {@link ui.router.state.$transitionsProvider#on $transitionsProvider.on}.
Registers a function to be injected and invoked when a transition has failed for any reason between the matched
'to' and 'from' state. The transition rejection reason is injected as $error$.
param
See transitionCriteria in {@link ui.router.state.$transitionsProvider#on $transitionsProvider.on}.
param
The function which will be injected and invoked, when a matching transition is started.
The function's return value is ignored.
Registers a function to be injected and invoked during a transition between the matched 'to' and 'from states,
when the matched 'from' state is being exited. This function is in injected with the exiting state's resolves.
This function can be injected with two additional special value:
$transition$: The current transition
$state$: The state being entered
param
See transitionCriteria in {@link ui.router.state.$transitionsProvider#on $transitionsProvider.on}.
param
See callback in {@link ui.router.state.$transitionsProvider#on $transitionsProvider.on}.
Registers a function to be injected and invoked during a transition between the matched 'to' and 'from states,
when the matched 'from' state is already active and is not being exited nor entered.
This function can be injected with two additional special value:
$transition$: The current transition
$state$: The state that is retained
param
See transitionCriteria in {@link ui.router.state.$transitionsProvider#on $transitionsProvider.on}.
param
See callback in {@link ui.router.state.$transitionsProvider#on $transitionsProvider.on}.
Registers a function to be injected and invoked when a transition has successfully completed between the matched
'to' and 'from' state is being exited.
This function is in injected with the 'to' state's resolves (note: JIT resolves are not injected).
This function can be injected with two additional special value:
$transition$: The current transition
param
See transitionCriteria in {@link ui.router.state.$transitionsProvider#on $transitionsProvider.on}.
param
The function which will be injected and invoked, when a matching transition is started.
The function's return value is ignored.
function
ui.router.state.$transitionsProvider#onEnter
ui.router.state.$transitionsProvider
Registers a function to be injected and invoked during a transition between the matched 'to' and 'from' states, when the matched 'to' state is being entered. This function is injected with the entering state's resolves.
This function can be injected with two additional special value:
$transition$
: The current transition$state$
: The state being enteredSee transitionCriteria in {@link ui.router.state.$transitionsProvider#on $transitionsProvider.on}.
See callback in {@link ui.router.state.$transitionsProvider#on $transitionsProvider.on}.