I am facing an issue with a cart setup where the quantity of all products are being updated when I increase the quantity of one product. How can I prevent this and only update the quantity of the selected product?
<div v-for="(product, index) in cartProducts" :key="index">
<li>{{product.description}}</li>
<input type="number" v-model="quantity">
<img src="imageurl" height="150">
<br>
<button type="button" class="btn btn-sm " disabled>{{product.price }}</button>
</div>
Vue data Property
data () {
return {
quantity: 1
}