aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/routeParamsSpec.js
AgeCommit message (Collapse)Author
2013-01-16fix($route): support route params not separated with slashes.Martin Probst
Commit 773ac4a broke support for route parameters that are not seperated from other route parts by slashes, which this change fixes. It also adds some documentation about path parameters to the when() method and escapes all regular expression special characters in the URL, not just some.
2012-12-14fix($route): correctly extract $routeParams from urlsGonzalo Ruiz de Villa
Routes like '/bar/foovalue/barvalue' matching '/bar/:foo/:bar' now are well mapped in $routeParams to: {bar:'barvalue', foo:'foovalue'} Closes: #1501 Signed-off-by: Gonzalo Ruiz de Villa <gonzaloruizdevilla@gmail.com>
2012-04-04feat($route): allow chaining of whens and otherwiseIgor Minar
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.
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery