Transition
ui.router.state
Represents a transition between two states, and contains all contextual information about the to/from states and parameters, as well as the list of states being entered and exited as a result of this transition.
Transition(from, to, options);
| Param | Type | Details |
|---|---|---|
| from | Object | The origin state from which the transition is leaving. |
| to | Object | The target state being transitioned to. |
| options | Object | An object hash of the options for this transition. |
| Object | New |
Gets the states being entered.
| Array | Returns an array of states that will be entered in this transition. |
Gets the states being exited.
| Array | Returns an array of states that will be exited in this transition. |
Indicates whether the transition should be ignored, based on whether the to and from states are the
same, and whether the reload option is set.
| boolean | Whether the transition should be ignored. |
Determines whether two transitions are equivalent.
Gets the origin and target parameters for the transition.
| Object | An object with |
Gets the previous transition from which this transition was redirected.
| Object | A |
Creates a new transition that is a redirection of the current one. This transition can
be returned from a $transitionProvider hook, $state event, or other method, to
redirect a transition to a new state and/or set of parameters.
| Transition | Returns a new |
Gets the states being retained.
| Array | Returns an array of states that were entered in a previous transition that will not be exited. |