[Vuejs]-Vue shows empty page

0👍

Create component:

Vue.component('app', {
  template: '<h3>Template Text</h3>'
});

new Vue({
    el: '#example',
    created: function () {
        console.log('root instance was created')
    },
    methods: {}
});

in html:

 <div id = "example">
        <app></app>
    </div>

Leave a comment