H
H
hckn2018-07-30 16:59:21
Vue.js
hckn, 2018-07-30 16:59:21

How to add a class in a cycle only to the element with which the interaction is performed?

When hovering over an element, the class changes for all elements ...
How, in this case, to add only to the element with the desired index?
There is an option to execute the method with vanilla JS there classList.addtoo, but this is not a true View way.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2018-07-30
@hckn

https://codepen.io/anon/pen/ZjvXEp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question