“Role até o topo Vue” Respostas de código

Role até o topo Vue

// add scroll to top when a is clicked (routes)
<a @click="scrollToTop(), goToPricing()">Pricing</a>

 methods: {
        scrollToTop() {
            window.scrollTo(0, 0);
        },  goToPricing() {
            this.$router.push('/pricing');
        }
        }
Grieving Gharial

Vuejs role para o topo

scrollToTop() {
window.scrollTo(0,0);
}
Tony Chanel

Role até o topo Vue

 methods: { 
           scrollToTop() {
                window.scrollTo(0,0);
           }
        }
Grieving Gharial

Role até o topo Vue

<router-link @click.native="$scrollToTop">
Grieving Gharial

Respostas semelhantes a “Role até o topo Vue”

Perguntas semelhantes a “Role até o topo Vue”

Mais respostas relacionadas para “Role até o topo Vue” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código