diff options
| author | Igor Minar | 2012-04-03 15:28:09 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-04-04 16:10:44 -0700 |
| commit | 15ecc6f3668885ebc5c7130dd34e00059ddf79ae (patch) | |
| tree | ab037fbdf3df20f53e96169925367536de736ce7 /test/ng/httpBackendSpec.js | |
| parent | 53b2254ea70019937463d8e079e1991b3d3d1d8b (diff) | |
| download | angular.js-15ecc6f3668885ebc5c7130dd34e00059ddf79ae.tar.bz2 | |
feat($route): allow chaining of whens and otherwise
Previously one had to write:
$routeProvider.when('/foo', {...});
$routeProvider.when('/bar', {...});
$routeProvider.otherwise({...});
After this change it's just:
$routeProvider.
when('/foo', {...}).
when('/bar', {...}).
otherwise({...});
Breaks #when which used to return the route definition object but now
returns self. Returning the route definition object is not very useful
so its likely that nobody ever used it.
Diffstat (limited to 'test/ng/httpBackendSpec.js')
0 files changed, 0 insertions, 0 deletions
