Answers for "vue js router link active class"

2

vue + change router link active class

const router = new VueRouter({
  routes,
  linkActiveClass: "active",
  linkExactActiveClass: "exact-active",
})
Posted by: Guest on November-23-2020
3

vue router active class

<router-link to="" active-class="active">Home</router-link>
Posted by: Guest on January-28-2021
-1

active-class router-link

//when a route is active we can use this to add a certain style to the element:
<router-link to="/[route-name]" active-link="active'> <router-link>

//when the route is active, active-link will add the class active to the element
//you can define then a certain style for elements that contain the class active
Posted by: Guest on October-31-2020

Code answers related to "vue js router link active class"

Code answers related to "Javascript"

Browse Popular Code Answers by Language