how to make @click in router-link vuejs
<router-link @click.native="remove" to="/remove">Remove</router-link>
how to make @click in router-link vuejs
<router-link @click.native="remove" to="/remove">Remove</router-link>
vue on page link or anchor
//P.S. the code is written for Vue 2.
//You will have to adjust it to Vue 1.
//Your view:
// <a class="porto-button" @click="scrollMeTo('porto')">Porto, Portugal</a>
// ...
// <div ref="porto" class="fl-porto"> </div>
//Your code:
methods: {
scrollMeTo(refName) {
var element = this.$refs[refName];
var top = element.offsetTop;
window.scrollTo(0, top);
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us