1const router = new VueRouter({
2 routes,
3 linkActiveClass: "active",
4 linkExactActiveClass: "exact-active",
5})
6
1//when a route is active we can use this to add a certain style to the element:
2<router-link to="/[route-name]" active-link="active'> <router-link>
3
4//when the route is active, active-link will add the class active to the element
5//you can define then a certain style for elements that contain the class active