-1👍
I don’t quite understand what you’re trying to do, and I haven’t read your PHP file but you should bind the comment_body data to your input (textarea), Vue makes this possible with the use of v-model – much like Angular.
<textarea v-model="comment_body"></textarea>
Also, data must be a function. So instead of
data: {
comment_body: ''
}
it must be
data() {
return {
comment_body: ''
}
}
Source:stackexchange.com