Skip to content

Commit fb64c8c

Browse files
committed
Update state.js
This feature was added to the codebase by pull request angular-ui#1809 but was never add in the documentation.
1 parent db79d76 commit fb64c8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/state.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -896,9 +896,11 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
896896
* - **`relative`** - {object=$state.$current}, When transitioning with relative path (e.g '^'),
897897
* defines which state to be relative from.
898898
* - **`notify`** - {boolean=true}, If `true` will broadcast $stateChangeStart and $stateChangeSuccess events.
899-
* - **`reload`** (v0.2.5) - {boolean=false}, If `true` will force transition even if the state or params
899+
* - **`reload`** (v0.2.5) - {boolean=false|string=}, If `true` will force transition even if the state or params
900900
* have not changed, aka a reload of the same state. It differs from reloadOnSearch because you'd
901901
* use this when you want to force a reload when *everything* is the same, including search params.
902+
* If string, string must be the name of the current state or one of its parent states, that way it is
903+
* possible to target exactly which state's the resources need to be reloaded.
902904
*
903905
* @returns {promise} A promise representing the state of the new transition.
904906
*

0 commit comments

Comments
 (0)