1
I’m creating a project with vuejs webpack (Vue-Loader) and recently I came across a problem, I can’t anchor any tag, because Vue understands that when using the hash #, you want to direct to a route... Someone knows how to fix this ?
I want when there is a click on the tag <a>
, the page is anchored to the bottom div:
<a href="#ancora"> Teste </a>
<div id="ancora" style="margin-top: 1000px">
<h1> Oi, eu sou uma div </h1>
</div>
On the href of the tag <a>
I’ve tried to put the following ways: #ancora
, /endereço-url#ancora
, /endereço-url/#ancora
, /#ancora
.
But all without success
This might help, http://stackoverflow.com/q/40341939/3162303
– Miguel