router link vue change active class code example
Example 1: vue + change router link active class
const router = new VueRouter({
routes,
linkActiveClass: "active",
linkExactActiveClass: "exact-active",
})
Example 2: vue router active class
<router-link to="" active-class="active">Home</router-link>