+ 2
Can we run Vue.js from Code Playground?
2 ответов
+ 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!'
}
})
};
+ 6
Write your JS code inside onload of body.