diff options
| author | joshrtay | 2012-12-26 21:45:11 -0800 |
|---|---|---|
| committer | James deBoer | 2013-08-12 11:04:37 -0700 |
| commit | 04cebcc133c8b433a3ac5f72ed19f3631778142b (patch) | |
| tree | 17c7307558e2c41624d1092a7e826a20967112ee /src/ng/location.js | |
| parent | c173ca412878d537b18df01f39e400ea48a4b398 (diff) | |
| download | angular.js-04cebcc133c8b433a3ac5f72ed19f3631778142b.tar.bz2 | |
feat($route): express style route matching
Added new route matching capabilities:
- optional param
Changed route matching syntax:
- named wildcard
BREAKING CHANGE: the syntax for named wildcard parameters in routes
has changed from *wildcard to :wildcard*
To migrate the code, follow the example below. Here, *highlight becomes
:highlight*:
Before:
$routeProvider.when('/Book1/:book/Chapter/:chapter/*highlight/edit',
{controller: noop, templateUrl: 'Chapter.html'});
After:
$routeProvider.when('/Book1/:book/Chapter/:chapter/:highlight*/edit',
{controller: noop, templateUrl: 'Chapter.html'});
Diffstat (limited to 'src/ng/location.js')
0 files changed, 0 insertions, 0 deletions
