-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex_v1.html
More file actions
45 lines (36 loc) · 880 Bytes
/
index_v1.html
File metadata and controls
45 lines (36 loc) · 880 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=
initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>VueJs do jeito Ninja</title>
</head>
<body>
<div id="app" >
<h1 v-if="status">{{titulo}}</h1>
<div v-if="usuario.id == 1">
Id: {{usuario.id}} <br/>
Nome: {{usuario.nome}} <br/>
Profissao: {{usuario.profissao}} <br/>
</div>
<div v-else>
<p>Nenhum usuário com Id == 1</p>
</div>
</div>
</body>
<script src="https://unpkg.com/vue"></script>
<script>
var app = new Vue({
el:"#app",
data:{
usuario:{
id:5,
nome:"John Snow",
profissao:"Ator"
}
}
});
</script>
</html>