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(){
}
});
})
Source:stackexchange.com