Home Vue.js: active class for router-link
 I have a sidebar item which is active when I click on it. It is obvious that when I click on a sublink inside a component, my active class switches off. How to prevent this? My sidebar:  My subscriptions  My component (a page which will be opened when we click on the item in the sidebar):   Inside my page you can see its children. In the router.js it looks like this: { path: '/sub', redirect: '/sub/success_tools_subscriptions', }, { path: '/sub', component: MySubscriptionsPage, children: [ { path: 'success_tools_subscriptions', component: MySuccessToolsSubscriptions, }, { path: 'qa_subscriptions', component: MyQaSubscriptions, }, ], },