v-select selected code example
Example 1: v-select key
<script>let options = [{code: 'CA', country: 'Canada'}];</script>
<v-select :options="options" :reduce="country => country.code" label="country" />
Example 2: 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)
}
}
})