mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-08 23:04:45 +00:00
docs($route): clarify examples of route parameters
Putting route parameter examples in braces was misleading newcomers. Closes #5243
This commit is contained in:
parent
d653607162
commit
fe84f7bef8
1 changed files with 3 additions and 3 deletions
|
|
@ -52,13 +52,13 @@ function $RouteProvider(){
|
||||||
* `$location.path` will be updated to add or drop the trailing slash to exactly match the
|
* `$location.path` will be updated to add or drop the trailing slash to exactly match the
|
||||||
* route definition.
|
* 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`
|
* to the next slash are matched and stored in `$routeParams` under the given `name`
|
||||||
* when the route matches.
|
* 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`
|
* All characters are eagerly stored in `$routeParams` under the given `name`
|
||||||
* when the route matches.
|
* 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
|
* For example, routes like `/color/:color/largecode/:largecode*\/edit` will match
|
||||||
* `/color/brown/largecode/code/with/slashs/edit` and extract:
|
* `/color/brown/largecode/code/with/slashs/edit` and extract:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue