Answer the question
In order to leave comments, you need to log in
How to highlight active menu item in vue.js?
There is a menu
<ul>
<li
v-for="(item, index) in menuList"
:key="index">
<a>{{item}}</a>
</li>
</ul>
Answer the question
In order to leave comments, you need to log in
<a :class="{active: item == currentlyActiveItem}">{{item}}</a>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question