Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add method to Router to manage unhandled routes #58

Open
NathanielAJohnson opened this issue Nov 12, 2013 · 3 comments

Comments

@NathanielAJohnson
Copy link

Routing systems often provide a method that specifies what to do in the event that the route does not match any known route. In Angular this is done with an otherwise method in the $routeProvider service. http://docs.angularjs.org/api/ngRoute.$routeProvider

This is convenient for debugging but also useful to correct user bookmark context errors that crop up when resources are identified with user specific data or context based ids.

@sethladd
Copy link
Contributor

Would defaultStream help you?

 ..serve(..., handler)
 ..defaultStream.listen(staticFiles.serveRequest);

@butlermatt
Copy link
Contributor

Unfortunately defaultStream is server side only. There is no equivalent for client side routing.

@NathanielAJohnson
Copy link
Author

I noticed that the route-hierarchy and 0.5.0 adds this functionality. Knowing that this is tip of the trunk, can I reasonably expect 0.5.0 to contain most of this functionality?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants