I have a list of cartItems
and I'm generating a dropdown for each one. Each cartItem
has a field called orig_quantity
that I'm looking to set the default value of the drop down to. I tried doing :value="item.orig_quantity"
but that doesn't seem to be doing it.
computed: {
quantityOptions: function() {
return [1,2,3]
}
}
<div v-for="(item, index) in cartItems"
<div>{item.product_name}</div>
<v-select :options="quantityOptions"
v-on:change="updateQuantity($event,item)">
</v-select>
</div>