-
Notifications
You must be signed in to change notification settings - Fork 0
/
basics.html
51 lines (41 loc) · 1.32 KB
/
basics.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Vue Basics</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div class="container">
<a href="index.html">Home</a>
<hr>
<div id="app1">
<h3 ref="heading">{{ title }}</h3>
<button v-on:click="show" ref="myButton">Show Paragraph</button>
<p v-if="showParagraph">This is not always visible</p>
</div>
<hr>
<div id="app2">
<h3 ref="heading">{{ title }}</h3>
<button @click="onChange">Change in Vue1</button>
<hello></hello>
<hello></hello>
</div>
<!-- Templates -->
<hr>
<div id="app3">
<h3>{{ title }}</h3>
</div>
<hr>
<div id="app4">
</div>
<!-- Component -->
<hr>
<div id="app5"></div>
</div>
</body>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="basics.js"></script>
</html>