I'm creating a project with vuejs webpack (vue-loader) and recently I came across a problem, I can not anchor any tags, because vue understands that when using hash #, you are wanting to direct to a route ... Anyone know how to solve this?
I want the page to be 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>
In the href of tag <a>
already tried to put in the following ways: <a>
, #ancora
, /endereço-url#ancora
, /endereço-url/#ancora
.
But all to no avail