+ 2

Can we run Vue.js from Code Playground?

https://code.sololearn.com/WSVbt1CIc2Rz

16th Apr 2017, 7:19 AM
Calviղ
Calviղ - avatar
2 Respuestas
+ 8
Embed all your code in the JS tab in a function assigned to the 'onload' event of the 'window' object: window.onload=function() { var app = new Vue({ el: '#app', data: { message: 'Hello Vue!' } }) };
16th Apr 2017, 7:35 AM
visph
visph - avatar
+ 6
Write your JS code inside onload of body.
16th Apr 2017, 7:26 AM
Ashwani Kumar
Ashwani Kumar - avatar