Answer the question
In order to leave comments, you need to log in
How to attach @click to a list element? If the list is a dynamics received on js?
There is a list of elements. Elements are received through Ajax on pure js. On a click on an element, I get the id of the entry from the attributes of the list element, then a modal window opens and, through a request for id, the content is displayed in it. The window has a vue component in which you need to load data also by the id of the list element.
How can I call a vue method on click on a list element from js and pass the id (id or data-id attribute) of this element to it?
Well, of course, but I really wanted to try out vue on existing tasks.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question