Methods
-
ancestors(first, second) → {Array}
-
Finds the common ancestor path between two states.
Parameters:
Name Type Description first
Object The first state.
second
Object The second state.
- Source:
- common.js, line 36
Returns:
Returns an array of state names in descending order, not including the root.
- Type
- Array
-
inheritParams(currentParams, newParams, $current, $to)
-
Merges a set of parameters with all parameters inherited between the common parents of the current state and a given destination state.
Parameters:
Name Type Description currentParams
Object The value of the current state parameters ($stateParams).
newParams
Object The set of parameters which will be composited with inherited params.
$current
Object Internal definition of object representing the current state.
$to
Object Internal definition of object representing state to transition to.
- Source:
- common.js, line 56