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

Add named urls #2

Open
kennydude opened this issue Oct 5, 2015 · 0 comments
Open

Add named urls #2

kennydude opened this issue Oct 5, 2015 · 0 comments
Assignees
Milestone

Comments

@kennydude
Copy link
Contributor

As per ticket #1

Another potential addition would be to include named URLs a la Django, so you can do:

SuperRouter.Route.create({
 url: "users/:user_id",
 route: function(){
   alert("normal routing stuff here!");
 },
 name: 'user-detail'
});

SuperHistory.navigate({name: 'user-detail', id: 4});
@kennydude kennydude self-assigned this Oct 5, 2015
@kennydude kennydude added this to the 0.1 milestone Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant