$transitionProvider
ui.router.state
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 in 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 | Type | Details |
---|---|---|
matchObject | object | See transitionCriteria in $transitionProvider.on. |
callback | function | See callback in $transitionProvider.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 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 | Type | Details |
---|---|---|
matchObject | object | See transitionCriteria in $transitionProvider.on. |
callback | function | See callback in $transitionProvider.on. |
Registers a function to be injected and invoked when a transition between the matched 'to' and 'from' states
starts. This function can be injected with one additional special value:
- $transition$
: The current transition
Param | Type | Details |
---|---|---|
matchObject | object | An object that specifies which transitions to invoke the callback for.
|
callback | function | The function which will be injected and invoked, when a matching transition is started. The function may optionally return a {boolean|Transition|object} value which will affect the current transition:
|
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 | Type | Details |
---|---|---|
matchObject | object | See transitionCriteria in $transitionProvider.on. |
callback | function | 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 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 | Type | Details |
---|---|---|
matchObject | object | See transitionCriteria in $transitionProvider.on. |
callback | function | The function which will be injected and invoked, when a matching transition is started. The function's return value is ignored. |