I am using router-link for menu list. With that, active class is adding properly on clicking the link. I have a button in a page and it will navigate to another page using $router.push function but the active class is not removed from the previous page link and it is not added to navigated page.
btnClick: function () {
this.$router.push({ path: '/NextPage' })
},
Can i force set active class through this.$router.push() function?
router-linkwith active class?