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

Allow dynamic values in v-link #9

Merged
merged 1 commit into from Jun 7, 2015
Merged

Conversation

holic
Copy link

@holic holic commented May 29, 2015

There's a pretty significant change here in storing the router instance to the vm.$root rather than just the vm.

I found that navigating with v-link in a deeply nested component couldn't find the _router instance:

Uncaught TypeError: Cannot read property '_router' of undefined

By mounting to the root VM and referencing it later, I was able to resolve this issue - but I'm not sure it's the best solution.

Closes #3

@yyx990803 yyx990803 merged commit 6e92388 into vuejs:master Jun 7, 2015
yyx990803 added a commit that referenced this pull request Jun 7, 2015
theprojectsomething added a commit to theprojectsomething/vue-router that referenced this pull request Oct 24, 2019
previously a scrollBehavior selector was only checked for ^#\d when determining whether to use getElementById or querySelector for matching; this would not work as intended for chained queries (e.g. `vuejs#9, .main`) or those with CSS special characters (e.g. `#one/two`).
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.

None yet

2 participants