Answers for "drop down v-for vuehs"

1

drop down v-for vuehs

<select v-model="testVal">
    <option v-for="item in test" :value="item">{{item}}</option>
</select>

and in data

data() {
    return{
        test: ['one', 'two', 'three'],
        testVal: null
    }
}
Posted by: Guest on October-16-2020

Browse Popular Code Answers by Language