I am new to Vue and I need to maintain a project .. the problem is this: I have in the main.js the route scheme ..
main.js
import Vue from 'vue'
const app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!'
}
});
page.vue
<span>{{ message }}</span>
I happen to be trying to display the "message" that is on the date in an external template .. which is in the folder address "../pages/page.vue"; but when I put {{message}} I get the following error:
[Vue warn]: Property or method "message" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.
Thank you!