-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_1.html
34 lines (34 loc) · 1.04 KB
/
Test_1.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
<html>
<head>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
<script type="text/javascript" src="js/source.js"></script>
</head>
<body ng-app="app">
<div ng-controller="oneController">
<input type="text" ng-model="firstName">
<input type="text" ng-model="Age">
<br/>
<input type="button" ng-click="Add()" value="Add to list">
<ul style="list-style-type:none">
<li ng-repeat="friend in friends">
<input type="checkbox" ng-model="friend.isTech" >
{{friend.Name}} {{friend.Age}}
</li>
</ul>
<h4>Non-Technical users list</h4>
<ul>
<li ng-repeat="friend in friends | filter: friend.isTech : true ">
{{friend.Name}} {{friend.isTech}}
</li>
</ul>
<h1>Technologies</h1>
<ul style="list-style-type:none;">
<li ng-repeat="tech in techs">
<input type="checkbox" ng-model="tech.selected">
{{tech.Name}}
</li>
</ul>
</div>
</body>
</html>