This repository was archived by the owner on Oct 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.1.html
More file actions
79 lines (62 loc) · 2.28 KB
/
index.1.html
File metadata and controls
79 lines (62 loc) · 2.28 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>MEU VUEJS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css">
</head>
<body>
<div id="app">
<!-- FOR -->
<ul>
<li v-for="(item, index) in linguagens"> {{index}} {{item.nome}}</li>
</ul>
<!-- Usando o V-MODEL -->
<label for="nome">Nome</label>
<input type="text" id="nome" v-model="nome"/></br></br>
<label for="telefone">Telefone</label>
<input type="text" id="telefone" v-model="telefone"/></br></br>
<label for="novidades">Deseja Receber nossas Novidades?</label>
<input type="radio" v-model="novidades" value="Sim"/>Sim
<input type="radio" v-model="novidades" value="Não"/> Não </br></br>
<label for="interesses">Interesses</label></br>
<input type="checkbox" v-model="interesses" value="Futebol"/>Futebol</br>
<input type="checkbox" v-model="interesses" value="Formula 1"/>Formula 1</br></br>
<label for="conheceu">Como nos conheceu?</label>
<select name="conheceu" id="" v-model="conheceu">
<option value="">Escolha</option>
<option value="Google">Google</option>
<option value="Facebook">Facebook</option>
<option value="Tv">Tv</option>
</select>
</br></br>
Nome: {{nome}}</br>
Telefone: {{telefone}}</br>
Novidades: {{novidades}}</br>
Interesses: {{interesses}}</br>
Conheceu: {{conheceu}}</br>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
var app = new Vue({
el: "#app",
data:{
titulo:"Aula 1 Vuejs",
nome:"",
telefone:"",
novidades: "",
interesses: [],
conheceu: "",
linguagens : [
{ nome: "Javascript" },
{ nome: "PHP" },
{ nome: "Java" },
{ nome: "Python" },
]
}
});
</script>
</body>
</html>