-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
96 lines (90 loc) · 3.33 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vuejs 2</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="directives/focus.js"></script>
<script src="directives/change-styles.js"></script>
<script src="filters/currency-filter.js"></script>
<script src="plugins/aboutMe.js"></script>
<script src="components/message.js"></script>
<script src="components/computed-properties.js"></script>
<script src="components/methods.js"></script>
<script src="components/vmodel.js"></script>
<script src="components/vmodel-checkboxes.js"></script>
<script src="components/emit.js"></script>
<script src="components/parent-data.js"></script>
<script src="components/child-data.js"></script>
<script src="components/child-methods.js"></script>
<script src="components/conditionals.js"></script>
<script src="components/slots.js"></script>
<script src="components/watchers.js"></script>
<script src="components/dolar.js"></script>
<script src="components/login-form.js"></script>
<script src="components/loops.js"></script>
<script src="components/computed-properties-get-set.js"></script>
<script src="components/dynamic-components/cmp1.js"></script>
<script src="components/dynamic-components/cmp2.js"></script>
<script src="components/dynamic-components/cmp3.js"></script>
<script src="components/load-dynamic-components.js"></script>
</head>
<body>
<div id="app" style="margin-bottom: 100px">
<message
v-change-styles="{backgroundColor:'red', color:'white'}"
></message>
<computed-properties></computed-properties>
<methods></methods>
<vmodel></vmodel>
<vmodel-checkboxes></vmodel-checkboxes>
<emit @showbrand="showCarBrandFromEmitCmp($event)"></emit>
<parent-data></parent-data>
<child-data ref="childData"></child-data>
<child-methods ref="childMethods"></child-methods>
<login-form></login-form>
<loops></loops>
<conditionals></conditionals>
<slots>
<template slot="header">
<h3>Header del layout con Slots</h3>
</template>
<p>Contenido del slot para el cuerpo</p>
<template slot="footer">
<p>Footer del layout con Slots</p>
</template>
</slots>
<watchers></watchers>
<!-- <dolar ref="dolar"></dolar> -->
<computed-properties-get-set></computed-properties-get-set>
<load-dynamic-components></load-dynamic-components>
</div>
<script>
new Vue({
el: "#app",
mounted() {
const cmpName = this.$refs.childData.cmpName;
const ram = this.$refs.childData.ram;
console.log("ram", ram, " nam dev");
const blue = this.$refs.dolar.calcularValor();
console.log(blue);
setTimeout(() => {
this.$refs.childMethods.showCmpName();
}, 300000);
console.log(this.$me("Javier", 23));
},
data() {
return {
appName: "Inicando el mundo de Vuejs 2",
};
},
methods: {
showCarBrandFromEmitCmp(carBrand) {
alert(carBrand);
},
},
});
</script>
</body>
</html>