0👍
Two way binding is reached using the following strategy:
- add
value
as one of yourprops
array. - add
v-on:change
on the input field inside your component. - on change you should emit the change as following
this.$emit('input', newValue)
.
Now you can use your component: <address-comp v-model='outerObject.address'></address-comp>
Source:stackexchange.com