Skip to content

Routing Design Discussion

Richard Collins edited this page May 3, 2013 · 3 revisions

This document came from the mailing list. It collects together the major discussions, issues and pull requests around the Routing system. Feel free to add other ideas or comment on those that are here.

1. Catch-all routes / route parameters with slashes / regular expressions in routes

Pull Request #918: $route should allow regexps params

Pull Request #972: feat($route): regexp support for $route params

Pull Request #1402 fix($resource) Route constructor, updated RegExp

Pull Request #1560: feat(routeProvider): Add support to catch-all parameters in routes

Pull Request #1634: Improved Angular routing in a backwards compatible way.

Pull Request #2571: Added hook for alternative route matching

2. Dynamic route templates / templateURLs

[AngularJS] Is it possible to interpolate templateURL in $routeProvider?

[AngularJS] Can we use "template" with $routeProvider to change (one the fly) and load different partial.html files inside of NgView ?

Pull Request #1534: feat($routeProvider): Allow using functions as template params in 'when'

StackOverflow: AngularJS - How to use $routeParams in generating the templateUrl?

3. State-charts / State-trees / FSM

[AngularJS] Using a Finite State Machine to control routing

[AngularJS] State charts

4. Multiple/nested views support

[AngularJS] Nested Routing

[AngularJS] Custom Routing / multiple or no ng-views

[AngularJS] Multi-level views, like ?

Pull Request #1198: Multiple named ngView directives and attaching views to routes

AngularUI routing enhancements discussion: https://github.com/angular-ui/router/issues/1#issuecomment-12459983

5. Route updates and triggers

Pull Request #577: Escaped "short" word and added ability to stop updatingRoute in beforeUpdateRoute

Pull Request #975: Per-route option to trigger $routeUpdate instead of reloading the same controller

6. Misc

Put here whatever doesn't fit in the other categories.