-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (25 loc) · 1.05 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
<!doctype html>
<html lang="en" ng-app="NarrowItDownApp">
<head>
<title>Narrow Down Your Menu Choice</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="angular.min.js"></script>
<script src="app.js"></script>
<link rel="stylesheet" href="styles/bootstrap.min.css">
<link rel="stylesheet" href="styles/styles.css">
</head>
<body>
<div class="container" ng-controller="NarrowItDownController as found">
<h1>Narrow Down Your Chinese Menu Choice</h1>
<div class="form-group">
<input type="text" placeholder="search term" class="form-control" ng-model="found.name">
</div>
<div class="form-group narrow-button">
<button class="btn btn-primary" ng-click="found.getMatchedMenuItems(found.name);">Narrow It Down For Me!</button>
</div>
<!-- found-items should be implemented as a component -->
<found-items items="found.items" on-remove="found.removeItem(index)"></found-items>
<div class="error" ng-if="found.emptyMessage">Nothing found</div>
</div>
</body>
</html>