vue officail code code example
Example 1: vuejs
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!'
}
})
Example 2: vuejs
const CounterApp = {
data() {
return {
counter: 0
}
},
mounted() {
setInterval(() => {
this.counter++
}, 1000)
}
}