[Vuejs]-How to get the Vue's element's child DOM?

0๐Ÿ‘

โœ…

I think you should tell us what functionality do you want to realize.

For your question:in vue.js there is ref binding to get the reference of DOM elements.

//html
<div id="box">
  <input ref="domOfInput" type="radio" v-model="pick" :value="a">
</div>

//js code
 vm.$refs.domOfInput will be the DOM node

Leave a comment