My parent component has the following child component:
<editor :editorBody="formData.englishBody"></editor>
My parent component has the following data:
data () {
return {
// allContent: null,
formData: {
englishTitle: '',
nepaliTitle: '',
englishBody: '',
nepaliBody: '',
activeInactive: false,
userId: null
},
rowId: null
}
}
My child component has its own v-model
, I am feeding props from parent to the child components v-model
.
<q-editor v-model="editorBody"></q-editor>
The formData.englishBody
is a parent component data. I want to update formData.englishBody
using the editor
child component. editor
child component is a textarea
. Basically, I want to link child's v-model
to parents data.