[Vuejs]-How to show different value on hover of a particular row of table in vue.js?

3👍

You can’t use a global variable for this. Your onHover is shared between everyone. What you should do here is keep a hoveredId and set hoveredId to student.id on the hover event and have v-show="student.id == hoveredId".

Leave a comment