-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (51 loc) · 1.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Deputados FrontEnd</title>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<!--Angular-->
<script src="bower_components/angular/angular.min.js"></script>
<script src="./js/app.js"></script>
<!--Service-->
<script src="./js/services/depService.js"></script>
<!--Controller-->
<script src="./js/controllers/depController.js"></script>
</head>
<body ng-app="appdep">
<div class="container">
<h1>Lista de Deputados do Brasil</h1>
</div>
<div ng-controller="depController">
<button class="btn-info" ng-click="listar()">Listar Deputados</button>
<table class="table">
<tr>
<td>Nome</td>
<td>Data de Nascimento</td>
<td>Partido</td>
<td>Estado</td>
<td>Titular</td>
<td>Telefone / Fax</td>
<td>Email</td>
<td>Legislaturas</td>
<td>Endereço</td>
<td>Foto</td>
</tr>
<tr ng-repeat="row in deputados">
<td>{{row.fullname}}</td>
<td>{{row.birthday}}</td>
<td>{{row.party}}</td>
<td>{{row.state}}</td>
<td ng-if="row.main == 'true'">Sim</td>
<td ng-if="row.main == 'false'">Não</td>
<td>{{row.phone}} / {{row.fax}}</td>
<td>{{row.email}}</td>
<td>{{row.legislaturas}}</td>
<td>{{row.address}}</td>
<td><img src="{{row.img}}" alt=""></td>
<tr>
</tr>
</table>
</div>
</body>
</html>