This commit is contained in:
Tyrel Souza 2018-04-13 13:20:21 -04:00
parent c134f13cec
commit c147f918bd
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0
2 changed files with 4 additions and 6 deletions

4
app.js
View File

@ -4,8 +4,8 @@ var app = new Vue({
title: "Hello world."
},
methods: {
changeTitle(event){
this.title = event.target.value
sayHello(){
return "Hello";
}
}
})

View File

@ -7,11 +7,9 @@
</head>
<body>
<div id='app'>
<input type="text" v-on:input="changeTitle">
<p>{{ title }}</p>
<p>{{ sayHello() }}</p>
</div>
<script src="app.js" charset="utf-8"></script>
</body>