[Vuejs]-Unable to set value to a bound property

1👍

You have to return msg_ from the setup() function.

setup(props) {
  var msg_ = ref({msg:"msg from parent"})
  
  return {
    props,
    msg_,
  }
}

Also it better to use const and let instead of var.

Leave a comment