[Vuejs]-I want to get div element code like childs with event functions in vuejs

0👍

In vue you can access (idiomatically) elements using the $refs property. You would put on an element ref="myEl" and then in your code you can grab the element on some event like so:

this.$refs.myEl.el.<do something>

Leave a comment