-
Notifications
You must be signed in to change notification settings - Fork 27.5k
$route should allow regexps params #918
Comments
+1 |
I would recommend /some/<param:[0-9]*> pattern. |
+1 |
@blainegarrett, you should have a look into PR #1560 as it allows matching arbitrary strings which also include slashes. |
@blainegarrett I was able to include slashes as valid string in my implementation just by extending the $routeProvider.shortcuts with { "path": { regex: "[\w\/]+" } } and then specifying the constraint for the parameter to be path. actually, I have exposed this shortcuts object, so that it is configurable from outside |
+1 |
1 similar comment
+1 |
+1 |
1 similar comment
+1 |
when will this merge to master? |
As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months. Please try the newest versions of Angular ( Thanks! |
+1 |
things like:
/some/:param ([0-9]*)
or allow list of values, eg.
/some/:param
where param can be one of['one', 'two', 'three']
Check out server side frameworks and their routing.
The text was updated successfully, but these errors were encountered: