Skip to content

Commit acf576a

Browse files
fredsajamesdaily
authored andcommitted
docs($route): reloadOnSearch affects hash fragment changes
reloadOnSearch also affects reloads due to $location.hash() changes
1 parent a726429 commit acf576a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngRoute/route.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ function $RouteProvider(){
109109
* The custom `redirectTo` function is expected to return a string which will be used
110110
* to update `$location.path()` and `$location.search()`.
111111
*
112-
* - `[reloadOnSearch=true]` - {boolean=} - reload route when only $location.search()
113-
* changes.
112+
* - `[reloadOnSearch=true]` - {boolean=} - reload route when only `$location.search()`
113+
* or `$location.hash()` changes.
114114
*
115115
* If the option is set to `false` and url in the browser changes, then
116116
* `$routeUpdate` event is broadcasted on the root scope.

0 commit comments

Comments
 (0)