-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheje03.html
49 lines (38 loc) · 1.06 KB
/
eje03.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
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Ejemplo 3</title>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<main>
<table>
<thead>
<th>Nombre</th>
<th>Apellido</th>
</thead>
<tbody>
<tr v-for="(item , idx) in users">
<td>{{item.nombre}}</td>
<td>{{item.apellido}}</td>
</tr>
</tbody>
</table>
{{$data}}
</main>
</body>
<script type="text/javascript">
new Vue({
el:'main',
data:{
users:[
{'nombre':'Jona','apellido':'Teran'},
{'nombre':'Silvana','apellido':'Rodriguez'},
{'nombre':'Jona2','apellido':'teran2'},
]
}
});
</script>
</html>