learnin-some-vue/app.js

15 lines
262 B
JavaScript
Raw Normal View History

2018-04-13 14:54:53 +00:00
var app = new Vue({
el: '#app',
data: {
2018-04-13 17:29:07 +00:00
title: "Hello World",
2018-04-13 17:32:48 +00:00
link: "https://google.com",
finishedLink: '<a href="http://google.com/">Google</a>'
2018-04-13 14:56:49 +00:00
},
2018-04-13 17:20:21 +00:00
methods: {
sayHello(){
2018-04-13 17:29:07 +00:00
this.title = 'Hello';
2018-04-13 17:22:47 +00:00
return this.title;
2018-04-13 14:56:49 +00:00
}
2018-04-13 14:54:53 +00:00
}
})