Answer the question
In order to leave comments, you need to log in
How to get a node in Vue?
Hello.
Vuejs question.
The application has a v-for loop that renders multiple elements.
Is there any way to set events on these elements?
I cannot reach these nodes in any way - neither through $refs, nor directly through QuerySelector - all the time undefined.
Moreover, a strange story — console.log(this.$refs) at the mounted() stage shows a list of nodes, but an attempt to access a specific node returns undefined.
How to be?
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