-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
82 lines (81 loc) · 2.23 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Vue Basics</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<style>
ul {
list-style: none;
}
</style>
</head>
<body>
<div id="app" class="container">
<div class="card mt-5" >
<h3 class="card-header text-center bg-primary text-light">
Getting started with VueJS examples
</h3>
<div class="list-group">
<a v-for="(example, index) in examples"
:key="index"
:href="`./examples/${example.link}`"
class="list-group-item list-group-item-action"
>
{{ example.name }}
</a>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.8/vue.js"></script>
<script>
new Vue({
el: '#app',
data: {
examples: [
{
name: '01 - Setting Up Vue',
link: '01_setting_up_vue.html'
},
{
name: '02 - Vue component anatomy',
link: '02_vue_component_anatomy.html'
},
{
name: '03 - Expressions',
link: '03_expressions.html'
},
{
name: '04 - Directives',
link: '04_directives.html'
},
{
name: '05 - Data Binding',
link: '05_data_binding.html'
},
{
name: '06 - List Rendering',
link: '06_list_rendering.html'
},
{
name: '07 - List Rendering With a Component',
link: '07_list_rendering_with_a_component.html'
},
{
name: '08 - Events part 1 - Shopping Cart Example',
link: '08_actions_and_events.html'
},
{
name: '09 - Events part 2 - Shopping Cart Example',
link: '09_actions_and_events_2.html'
},
{
name: '10 - Filters',
link: '10_filters.html'
}
]
}
})
</script>
</body>
</html>