Skip to content

Commit 2bdfaa4

Browse files
committed
docs($state): add note about default params
1 parent 1f781c8 commit 2bdfaa4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/state.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,8 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
883883
*
884884
* @param {object=} params A map of the parameters that will be sent to the state,
885885
* will populate $stateParams. Any parameters that are not specified will be inherited from currently
886+
* defined parameters. Only parameters specified in the state definition can be overridden, new
887+
* parameters will be ignored. This allows, for example, going to a sibling state that shares parameters
886888
* defined parameters. This allows, for example, going to a sibling state that shares parameters
887889
* specified in a parent state. Parameter inheritance only works between common ancestor states, I.e.
888890
* transitioning to a sibling will get you the parameters for all parents, transitioning to a child

0 commit comments

Comments
 (0)