-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (24 loc) · 826 Bytes
/
index.html
File metadata and controls
29 lines (24 loc) · 826 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Typeahead App</title>
<link rel="stylesheet" href="lib/typeahead.css">
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script src="app.js"></script>
<script src="lib/typeahead.js"></script>
<script src="lib/utilities.js"></script>
<script src="search.js"></script>
</head>
<body ng-app="TypeaheadApp">
<div ng-controller="SearchController as Search">
<div>
<input type="search" maxlength="100" ng-model="Search.query">
<typeahead source="Search.loadResults(Search.query)" action="Search.select(item)"></typeahead>
</div>
<div ng-hide="Search.lastSearch === ''">
<h3>Last Search was for '<em>{{Search.lastSearch}}</em>'</h3>
</div>
</div>
</body>
</html>