- Notifications
You must be signed in to change notification settings - Fork27.4k
feat($route): regexp support for $route params#972
Uh oh!
There was an error while loading.Please reload this page.
Conversation
freewind commentedJul 6, 2012
Hope angularjs team can review/merge this pull request, I need this feature very much |
Copy & Paste this into PRs: "Thanks for your contribution! In order for us to be able to accept it, we ask you to sign our CLA (contributor's license agreement). CLA is important for us to be able to avoid legal troubles down the road. For individuals (a simple click-through form): For corporations (print, sign and scan+email, fax or mail): |
Thanks for the PR, and very sorry about the delay in getting to it. Unfortunately this feature is not yet done. There are few use cases outlined in comments which do not work, and the PR is missing documentation. Could you update it and rebase to master and we will have another look. We promise not to take 3 months again. Again sorry about the delay. I understand this may not be a priority for you, so I am going to close this request so that it does not show up in our list. Once you update the changes requested please reopen the request. |
rzajac commentedJan 21, 2013
Any news about this patch? I really would like to see regexp routes in AngularJS. |
chanpory commentedMar 20, 2013
Any updates? Really want this feature! |
laurent-le-graverend commentedApr 5, 2013
I am a bit lost, it has been pushed in the master or in the v1? |
@laurent-le-graverend it didn't land in any branch, see this comment: |
👍 to this feature. Extremely helpful to define the routes using regexes, even more so to be able to access the compiled regexes later. |
samstr commentedJun 4, 2013
👍 I would like to allow routes with a variable amount of subcategories /category1/category2/category/3 where category 2 and 3 are optional but parsed & their resources resolved if they exist. |
Commit related to the issue#918
$routeProvider.when('/user/:id/:age', {template:'user.html'}, {id:"[0-9]", age:"[0-9]"})
$routeProvider.when('/some/:param', {template:'foo.html'}, {param:"one|two|tree"});
$routeProvider.when('/some/:param', {template:'foo.html'}, {param:"float"});
$routeParams.param will be typeof number
Thanks for your contribution! In order for us to be able to accept it, we ask you to sign our CLA (contributor's license agreement).
CLA is important for us to be able to avoid legal troubles down the road.
For individuals (a simple click-through form):
http://code.google.com/legal/individual-cla-v1.0.html
For corporations (print, sign and scan+email, fax or mail):
http://code.google.com/legal/corporate-cla-v1.0.html