diff options
| author | Pete Bacon Darwin | 2013-06-11 22:15:54 +0100 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-06-11 22:15:54 +0100 |
| commit | c9c3f718e2564a6cc13f958a777ebb4ba9ce5de5 (patch) | |
| tree | 5f7f8faa79b69c800e8e517f8b885737ac68999b /src/ngRoute/routeParams.js | |
| parent | b6ff8d751f6d76d8a03d01562279d47886c98c66 (diff) | |
| download | angular.js-c9c3f718e2564a6cc13f958a777ebb4ba9ce5de5.tar.bz2 | |
docs(ngRoute): clarify when gets updated
Diffstat (limited to 'src/ngRoute/routeParams.js')
| -rw-r--r-- | src/ngRoute/routeParams.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ngRoute/routeParams.js b/src/ngRoute/routeParams.js index 0c86e89d..0007e833 100644 --- a/src/ngRoute/routeParams.js +++ b/src/ngRoute/routeParams.js @@ -18,6 +18,10 @@ ngRouteModule.provider('$routeParams', $RouteParamsProvider); * The service guarantees that the identity of the `$routeParams` object will remain unchanged * (but its properties will likely change) even when a route change occurs. * + * Note that the `$routeParams` are only updated *after* a route change completes successfully. + * This means that you cannot rely on `$routeParams` being correct in route resolve functions. + * Instead you can use `$route.current.params` to access the new route's parameters. + * * @example * <pre> * // Given: |
