Skip to content

[2.0.0-beta.2] Set current route to named route if one exists. #584

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

Closed
wants to merge 2 commits into from
Closed

[2.0.0-beta.2] Set current route to named route if one exists. #584

wants to merge 2 commits into from

Conversation

zigomir
Copy link
Contributor

@zigomir zigomir commented Jul 27, 2016

If named routes are used component instance's $route.name will be undefined. That is because history.current won't be assigned to named route due to router.match('/').

This implementation is really ugly and probably fails. It's just a discussion starter. Probably we should solve it differently.

@zigomir zigomir changed the title Set current route to named route if one exists. [2.0.0-beta.2] Set current route to named route if one exists. Jul 27, 2016
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

Successfully merging this pull request may close these issues.

1 participant