-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (34 loc) · 945 Bytes
/
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
<html ng-app="LunchApp">
<head>
<meta charset="utf-8">
<title>Module 1</title>
<script src="angular.min.js"></script>
<script src="app.js"></script>
<style>
.fineBorder{
border: 1px solid green;
}
.errorBorder{
border: 1px solid red;
}
.error{
color: red;
}
.fine{
color: green;
}
</style>
</head>
<body ng-controller="LunchController">
<h1>Lunch Checker</h1>
<div>
<input type="text" ng-model="list" ng-class="borderStatus" placeholder="Enter your lunch items">
<button ng-click="check()">Check</button>
<div ng-class="statusClass">
{{message}}
<br>
{{counterItems}}
</div>
</div>
</body>
</html>