[Vuejs]-What is the best way to use v-model without using it in the main app.js file?

0👍

It’s a bit tricky to make out what you are doing exactly, but your error is related to having no data property ‘message’, you have only a property called ‘productname’.

If you want your component to communicate up to its parents or siblings you should read into emitting events in vue using

this.$emit

Leave a comment