-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (38 loc) · 1.08 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE >
<html>
<head>
<title>VueJS Course</title>
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<div id="app">
<!-- <p v-if="mode == 1">Showing v-if directive content</p>
<template v-else-if="mode == 2">
<p>Bonus content</p>
<h3>v-else-if</h3>
</template>
<p v-else>v-else</p>
<i v-show="mode == 1">v-show</i>
<select v-model="mode">
<option value="1">v-if</option>
<option value="2">v-else-if</option>
<option value="3">v-else</option>
</select> -->
<ul>
<li v-for="(bird, index) in birds" :class="bird" :key="bird">
{{ bird }} - {{ index }}
</li>
</ul>
<hr />
<ul>
<li v-for="person in people">
<div v-for="(value, key, index) in person">
{{ key }}: {{ value }} - Index: {{ index }}
</div>
</li>
</ul>
</div>
<script src="https://unpkg.com/vue@next"></script>
<script src="app.js"></script>
</body>
</html>