-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello.html
38 lines (34 loc) · 997 Bytes
/
hello.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
<html ng-app="App">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
<script src="controllers.js"></script>
</head>
<body>
<div ng-controller='HelloController'>
<input ng-model='greeting.text'></br>
<span ng-bind="greeting.text"></span>, World
</div>
<div ng-controller='CartController'>
Search: <input ng-model="searchText">
<ul>
<li ng-repeat="item in items | filter:searchText">
<span>{{item.title}}</span>
<input ng-model='item.quantity'>
<span>{{item.price | currency}}</span>
<span>{{item.price * item.quantity | currency}}</span>
<button ng-click="remove($index)">Remove</button>
</li>
</ul>
</div>
<div>
Click here: <input type="checkbox" ng-model="checked"><br/>
<span ng-show="checked">Show</span>
<span ng-hide="checked">Hide</span>
</div>
<div angular></div>
<div class="angular"></div>
<angular></angular></br>
<!-- directive: angular -->
</body>
</body>
</html>