0👍
I would declare a new component as follows:
Vue.component('Home', {
template: `<div><div>{{ message }}</div></div>`,
data() {
return { message: 'hello' }
}
});
0👍
Thanks to everyone for their help. Here is a working solution.
var Home = {
template: `
<div>
<div>
{{message}}
</div>
</div>
`,
data() {
return {
message: 'hello'
}
}
};
- [Vuejs]-Algolia refinement list not selecting values properly
- [Vuejs]-Writing a javascript recursive async method to an object
Source:stackexchange.com