learnin-some-vue/app.js
2018-04-13 14:27:33 -04:00

22 lines
320 B
JavaScript

var app = new Vue({
el: '#app',
data: {
counter: 0,
secondCounter: 0,
},
methods: {
result(){
console.log("result");
return this.counter >= 5 ? ">=5" : "<5"
}
},
computed: {
output(){
console.log("computed");
return this.counter >= 5 ? ">=5" : "<5"
}
}
})