Skip to content

Commit e049704

Browse files
committed
Merge pull request #2241 from tamlyn/patch-1
Improved $state.go documentation
2 parents b6bbae5 + ea8bf5b commit e049704

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/state.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +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. This allows, for example, going to a sibling state that shares parameters
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
887888
* specified in a parent state. Parameter inheritance only works between common ancestor states, I.e.
888889
* transitioning to a sibling will get you the parameters for all parents, transitioning to a child
889890
* will get you all current parameters, etc.

0 commit comments

Comments
 (0)