<!-- Parent.vue -->
<child v-model="someObj"></v-modle>
// Child.vue
export default {
props: {
value: Object
},
created() {
console.log(this.value); // expect output is someObj (from Parent.vue)
}
};
if you want to customize, see more details
export default {
model: {
prop: "checked",
event: "change"
}
};