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 function to obtain information about the current route #22

Open
bguiz opened this issue Sep 12, 2014 · 0 comments
Open

Add function to obtain information about the current route #22

bguiz opened this issue Sep 12, 2014 · 0 comments

Comments

@bguiz
Copy link
Contributor

bguiz commented Sep 12, 2014

See my patch: #21

What would be even more useful than just obtaining the current hash would be a function that return not just the path of the route, e.g.:

`/foo/123/bar`

... but instead return the full route information, e.g.:

 {
    hash: '/foo/123/bar',
    route: '[/foo/:fooId]/bar',
    bindings: {
        fooId: '123',
    },
 }
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

1 participant