I have a working vue/laravel component where I'm using a v-for loop in a select box in order to create options from a vue array. This works properly.
My v-bind is properly binding the id of the selected option to featureID, but here's my question:
How can I also bind the feature.feature_name to another prop like featureName?
I don't see how I can bind the ID and the name of the selected option to two different props?
<select v-model="featureID">
<option v-for="feature in features" v-bind:value="feature.id">
@{{ feature.name }}
</option>
</select>
data: {
featureID: [''],
features: [{id:1, name: 'test'}, {id:2, name: 'good}]
}