-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2.composing.html
More file actions
51 lines (51 loc) · 1.24 KB
/
2.composing.html
File metadata and controls
51 lines (51 loc) · 1.24 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<div id="app">
<ol>
<introduce
v-for="trandan in users"
v-bind:key="trandan.key"
v-bind:trandan_name="trandan.name"
v-bind:trandan_action="trandan.action"
></introduce>
</ol>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
Vue.component("introduce", {
props: ["trandan_name", "trandan_action"],
template: " <li> <b>{{trandan_name}}</b> noi la: {{trandan_action}}</li>",
});
var app = new Vue({
el: "#app",
data: {
message: "hello vue composing",
users: [
{
key: 1,
name: "tran dan",
action: "con card",
},
{
key: 2,
name: "tran dan",
action: "vo van hoa",
},
{
key: 3,
name: "tran dan",
action: "tau ban may do",
},
],
},
});
</script>
</html>