[Vuejs]-How to update a child component when incrementing it in the parent component?

1👍

Why are you passing a value prop from the parent anyway? Shouldn’t the value of the child be self-controlled?

Try removing the binding of value.

<input type="number" placeholder="Amount" @input="$emit('input',$event.target.value/>`

Leave a comment