[Vuejs]-Data from props not showing in v-model (VueJS)

1👍

Seems your code is only assign this.comment to localComment once when the child component is init. Instead, you can use watcher to watch the change of prop comment and assign it to the localComment everytime you update from the parent component. Let’s try to see if resolve your problem

watch() {
   comment(value) {
      this.localComment = value
   }
}

Leave a comment