We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e9a41 commit e53e02cCopy full SHA for e53e02c
index.html
@@ -10,15 +10,18 @@
10
<body>
11
<div id="app">
12
<form v-on:submit.prevent="submit">
13
- <input type="text"><br>
+ <!-- <input type="text" :value="text" @keyup="updateText"><br> -->
14
+ <input type="text" v-model="text"><br>
15
+ {{ text }}<br>
16
<button type="submit">Submit</button>
17
</form>
18
</div>
19
<script>
20
new Vue({
21
el: '#app',
22
data: {
- year: 2018
23
+ year: 2018,
24
+ text: 'text'
25
},
26
methods: {
27
plus() {
@@ -30,7 +33,10 @@
30
33
submit() {
31
34
alert('submitted');
32
35
console.log('hello');
- }
36
+ },
37
+ // updateText(event) {
38
+ // this.text = event.target.value;
39
+ // }
40
}
41
})
42
</script>
0 commit comments