forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(routeProvider): Add support to catch-all parameters in routes
This allows routeProvider to accept parameters that matches substrings even when they contain slashes if they are prefixed with an asterisk instead of a colon. This PR introduces a new syntax for route params, so we would have: :param for a single param *param for catch-all params For example, routes like edit/color/:color/largecode/*largecode will match with something like this: http://appdomain.com/edit/color/brown/largecode/code/with/slashs It also matches catch-all routes in the middle of the path. BREAKING CHANGE: Asterisk is not allowed anymore as part of the route definition
- Loading branch information
Showing
2 changed files
with
76 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters