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

jump to anchor tag #580

Closed
vonKristoff opened this issue Jul 25, 2016 · 1 comment
Closed

jump to anchor tag #580

vonKristoff opened this issue Jul 25, 2016 · 1 comment

Comments

@vonKristoff
Copy link

I have looked at the docs, but cannot find how to work jumping to a named anchor, classic HTML style. I do not wish to change my route view - just jump from one part of the body text to the other via an anchor tag.

<a href="#about">About</a>
Further down the body will be ..
<span name="about">business as usual</span>

This is simple stuff, but obviously if this is not being mapped by my router it will cancel it from being appended and jumping to the relevant section.

@chrisvfritz
Copy link
Collaborator

This doesn't have anything to do with vue-router. The name attribute only works when jumping to a named anchor. If you wish to jump to a span, you'll have to use id, which is preferred anyway in HTML5. See this.

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

2 participants