[Vuejs]-Highlighting parent menu from router-link in VueJS

0👍

Use nested routes.

Parent <router-link>‘s should have the class .router-link-active.

The exact <router-link> should have .router-link-exact-active.

Check out this code for an interactive example.

Leave a comment