This commit is contained in:
Tyrel Souza 2018-04-13 13:29:07 -04:00
parent 568ce4f953
commit ffaec02119
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0
2 changed files with 5 additions and 2 deletions

4
app.js
View File

@ -1,10 +1,12 @@
var app = new Vue({
el: '#app',
data: {
title: "Hello world."
title: "Hello World",
link: "https://google.com"
},
methods: {
sayHello(){
this.title = 'Hello';
return this.title;
}
}

View File

@ -7,7 +7,8 @@
</head>
<body>
<div id='app'>
<p>{{ sayHello() }}</p>
<h1 v-once>{{title}}</h1>
<p>{{ sayHello() }}</p> - <a v-bind:href="link">Google</a>
</div>
<script src="app.js" charset="utf-8"></script>