Answers for "vuetify use selected value"

0

vuetify use selected value

new Vue({
  el: '#app',
  data: () => ({
    items: [
      {value: '1', bankName: 'Bank1'},
      {value: '2', bankName: 'Bank2'},
    ],
    selectedBank: null
  }),
  methods: {
    directToBank() {
      console.log("Label: ", this.selectedBank.bankName)
      console.log("Value: ", this.selectedBank.value)        
    }
  }
})
Posted by: Guest on February-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language