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
// scroll to element using quasar library
// uses example; scrollToElement(this.$route.hash)
// uses example; scrollToElement('#cafe-menu')
import { scroll } from 'quasar'
const { getScrollTarget, setScrollPosition } = scroll
scrollToElement (id) {
if (id && id !== '') {
let el = document.querySelector(id)
if (el) {
const target = getScrollTarget(el)
const offset = el.offsetTop
const duration = 1000
setScrollPosition(target, offset, duration)
}
}
},
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