[Vuejs]-CoreUI vue.js template in Laravel not working correctly

0๐Ÿ‘

โœ…

I simply had to wrap the Vue Object into DOMContentLoaded to make sure that the DOM is ready before attaching vue.js.

document.addEventListener("DOMContentLoaded", function(event) {
    const app = new Vue({
        el: '#my-app',
        data(){
        }
    });
})

Leave a comment