Skip to content

Commit b26c3fa

Browse files
hambyiiijamesdaily
authored andcommitted
docs($route): clarify examples of route parameters
Putting route parameter examples in braces was misleading newcomers. Closes angular#5243
1 parent f5d549a commit b26c3fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ngRoute/route.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ function $RouteProvider(){
5252
* `$location.path` will be updated to add or drop the trailing slash to exactly match the
5353
* route definition.
5454
*
55-
* * `path` can contain named groups starting with a colon (`:name`). All characters up
55+
* * `path` can contain named groups starting with a colon: e.g. `:name`. All characters up
5656
* to the next slash are matched and stored in `$routeParams` under the given `name`
5757
* when the route matches.
58-
* * `path` can contain named groups starting with a colon and ending with a star (`:name*`).
58+
* * `path` can contain named groups starting with a colon and ending with a star: e.g.`:name*`.
5959
* All characters are eagerly stored in `$routeParams` under the given `name`
6060
* when the route matches.
61-
* * `path` can contain optional named groups with a question mark (`:name?`).
61+
* * `path` can contain optional named groups with a question mark: e.g.`:name?`.
6262
*
6363
* For example, routes like `/color/:color/largecode/:largecode*\/edit` will match
6464
* `/color/brown/largecode/code/with/slashs/edit` and extract:

0 commit comments

Comments
 (0)