Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get 3rd level form data by $refs in vue

Vue.component('mycomponent', {
    template: "#mycomponent",
});

new Vue({
  el: '#app',
  mounted() {
    console.log(
      'Second level <input>'s value:',
      this.$refs.myFirstLevelRefName.$refs.mySecondLevelRefName.value
    )
  }
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #level #form #data #vue
ADD COMMENT
Topic
Name
3+7 =