-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (30 loc) · 822 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Learning Vue</title>
<script src="https://unpkg.com/vue@3"></script>
</head>
<body>
<div id="app">
<p>
<input type="text" v-model="greeting">
</p>
<p> {{ greeting }} ({{ greeting.length}}) </p>
</div>
<script>
Vue.createApp({
data() {
return {
greeting: 'Hello World'
}
},
mounted() {
setTimeout(() => {
this.greeting = 'this message was set using mounted'
}, 3000)
}
}).mount('#app');
</script>
</body>
</html>