-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (35 loc) · 1.2 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Autocomplete</title>
<link rel="stylesheet" href="./public/css/style.css">
</head>
<body>
<div ng-app = "autocompleteApp" ng-controller="MainCtrl as ct">
<div class="searcher">
<label for="">Informe o termo da busca:</label>
<input type="search" autocomplete="off" ng-model="search" ng-keydown="getData()" class="teacher-search" placeholder="Search...">
<div class="list">
<listNames class="names" ng-repeat="option in options | filter: search as results" ng-click="select($index)" ng-if="search.length > 0">{{option.nome}}</listNames>
</div>
</div>
<div class="teacher" ng-show="selectedTeacher">
<div class="item image">
<img class="photo" ng-src="{{teacher.imagem}}" alt="" />
</div>
<div class="item description">
<div class="name">{{teacher.nome}}</div>
<div>{{teacher.materia}}</div>
<div data-rating="rating"></div>
</div>
<div class="item curriculo">
<p>{{teacher.curriculo}}</p>
</div>
</div>
</div>
</body>
<script>
require('./renderer.js')
</script>
</html>