diff options
| author | hambyiii | 2013-12-03 09:55:09 +0100 | 
|---|---|---|
| committer | Peter Bacon Darwin | 2013-12-09 20:48:50 +0000 | 
| commit | fe84f7bef8b7c63158cf1699f3a62793b555fce8 (patch) | |
| tree | df34db33fc8a7ad3c76082344e4cfd7f4f01d957 /src | |
| parent | d653607162488839b440de7b00b3c00d360bca3a (diff) | |
| download | angular.js-fe84f7bef8b7c63158cf1699f3a62793b555fce8.tar.bz2 | |
docs($route): clarify examples of route parameters
Putting route parameter examples in braces was misleading newcomers.
Closes #5243
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngRoute/route.js | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ngRoute/route.js b/src/ngRoute/route.js index e56faa30..fb1b952f 100644 --- a/src/ngRoute/route.js +++ b/src/ngRoute/route.js @@ -52,13 +52,13 @@ function $RouteProvider(){     *    `$location.path` will be updated to add or drop the trailing slash to exactly match the     *    route definition.     * -   *      * `path` can contain named groups starting with a colon (`:name`). All characters up +   *      * `path` can contain named groups starting with a colon: e.g. `:name`. All characters up     *        to the next slash are matched and stored in `$routeParams` under the given `name`     *        when the route matches. -   *      * `path` can contain named groups starting with a colon and ending with a star (`:name*`). +   *      * `path` can contain named groups starting with a colon and ending with a star: e.g.`:name*`.     *        All characters are eagerly stored in `$routeParams` under the given `name`     *        when the route matches. -   *      * `path` can contain optional named groups with a question mark (`:name?`). +   *      * `path` can contain optional named groups with a question mark: e.g.`:name?`.     *     *    For example, routes like `/color/:color/largecode/:largecode*\/edit` will match     *    `/color/brown/largecode/code/with/slashs/edit` and extract:  | 
