bagaimana mendapatkan opsi pertama di Select in Vue JS
this.selectValueData = this.optionItem[0].id
Mohamad
this.selectValueData = this.optionItem[0].id
<option v-for="(location, index) in locations" v-bind:value="location.id" v-bind:selected="index === 0">
{{ location.from }} - {{ location.to }}
</option>