0👍
The problem might be with the values of your to="" arguments. They are relative to the current page, so if you navigate to, for example, "learners" then your url will end with …/learners/ then if you navigate to "danger" your url will change to …/learners/danger/ which will be missed by the exact-active class. Try giving absolute values to to="".
- [Vuejs]-Delete an element from array nuxtjs
- [Vuejs]-Inline event handler in Vue.Js with dots in the name
0👍
The css class you should be using is router-link-exact-active
Source:stackexchange.com