Scrapbox_Vue.js_Test
code:Hello.vue
const Messages = {
template:
<div class="hero"> +
'<div class="hero-body has-text-centered">{{ message }}</div>' +
'</div>',
data: function() {
return {
message: 'Hello World!!',
}
}
}
new Vue({
el: '#app',
components: {
'app-template': Messages
}
})