diff options
| author | Brian Ford | 2013-08-22 12:32:42 -0700 |
|---|---|---|
| committer | Brian Ford | 2013-08-22 16:55:54 -0700 |
| commit | 57c43dd3762ea665125bff7e4727bce06a225b32 (patch) | |
| tree | 5002413ad53358a509d881f7999903e01c51f124 /src/ngRoute/routeParams.js | |
| parent | 99175f429417318e2087a92dd21bc8d5351c97a3 (diff) | |
| download | angular.js-57c43dd3762ea665125bff7e4727bce06a225b32.tar.bz2 | |
docs(module): improve the installation instructions for optional modules
Currently, the documentation does a bad job of explaining the distinction between the services that it provides,
and the module itself. Furthermore, the instructions for using optional modules are inconsistent or missing.
This commit addresses the problem by ading a new `{@installModule foo}` annotation to the docs generator that
inlines the appropriate instructions based on the name of the module.
Diffstat (limited to 'src/ngRoute/routeParams.js')
| -rw-r--r-- | src/ngRoute/routeParams.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ngRoute/routeParams.js b/src/ngRoute/routeParams.js index 0007e833..4d306e89 100644 --- a/src/ngRoute/routeParams.js +++ b/src/ngRoute/routeParams.js @@ -9,9 +9,13 @@ ngRouteModule.provider('$routeParams', $RouteParamsProvider); * @requires $route * * @description - * Current set of route parameters. The route parameters are a combination of the - * {@link ng.$location $location} `search()`, and `path()`. The `path` parameters - * are extracted when the {@link ngRoute.$route $route} path is matched. + * The `$routeParams` service allows you to retrieve the current set of route parameters. + * + * Requires the {@link ngRoute `ngRoute`} module to be installed. + * + * The route parameters are a combination of {@link ng.$location `$location`}'s + * {@link ng.$location#search `search()`} and {@link ng.$location#path `path()`}. + * The `path` parameters are extracted when the {@link ngRoute.$route `$route`} path is matched. * * In case of parameter name collision, `path` params take precedence over `search` params. * |
