Answer the question
In order to leave comments, you need to log in
Why is there a problem with router-link-active?
I am initializing the project with vue init webpack my-project .
I make a horizontal menu and write in it:
<router-link to="/"></router-link>
<router-link to="/about"></router-link>
<router-link to="/team"></router-link>
<router-link to="/contacts"></router-link>
Answer the question
In order to leave comments, you need to log in
In the first one in the tag after to="/" write exact
All your items contain "/", so the first one is highlighted along with the rest
You can just IMHO remove the slash for the first route.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question