This commit is contained in:
Tyrel Souza 2018-04-13 13:44:28 -04:00
parent 78e0c132e7
commit 1ac671e702
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0
2 changed files with 6 additions and 11 deletions

11
app.js
View File

@ -1,14 +1,11 @@
var app = new Vue({
el: '#app',
data: {
title: "Hello World",
link: "https://google.com",
finishedLink: '<a href="http://google.com/">Google</a>'
counter: 0
},
methods: {
sayHello(){
this.title = 'Hello';
return this.title;
methods:{
click(){
this.counter++;
}
}
})

View File

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