From fb64c8c17019983f42f182be2a8c73e2d867bbcb Mon Sep 17 00:00:00 2001 From: lefterisk Date: Fri, 30 Oct 2015 17:55:43 +0000 Subject: [PATCH] Update state.js This feature was added to the codebase by pull request #1809 but was never add in the documentation. --- src/state.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/state.js b/src/state.js index be36c99bc..ac7285cf9 100644 --- a/src/state.js +++ b/src/state.js @@ -896,9 +896,11 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) { * - **`relative`** - {object=$state.$current}, When transitioning with relative path (e.g '^'), * defines which state to be relative from. * - **`notify`** - {boolean=true}, If `true` will broadcast $stateChangeStart and $stateChangeSuccess events. - * - **`reload`** (v0.2.5) - {boolean=false}, If `true` will force transition even if the state or params + * - **`reload`** (v0.2.5) - {boolean=false|string=}, If `true` will force transition even if the state or params * have not changed, aka a reload of the same state. It differs from reloadOnSearch because you'd * use this when you want to force a reload when *everything* is the same, including search params. + * If string, string must be the name of the current state or one of its parent states, that way it is + * possible to target exactly which state's the resources need to be reloaded. * * @returns {promise} A promise representing the state of the new transition. *