-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (28 loc) · 1.53 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
29
<!doctype html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.6/angular.min.js"></script>
<script src="app.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Examine App</title>
</head>
<body ng-app="ExamineApp" ng-controller="examinCtrl">
<h1>Contact Tree</h1>
<ul>
<li ng-repeat="contact in contacts track by $index" ng-click="toggleGroup(contact)" >
<span ng-class="{isClicked:currentClickedItem==contact.id}">{{contact.name}}</span>
<ul ng-if="contact.contacts && contact.contacts.length > 0 && iscollapsedArr.indexOf(contact.id) > -1"><!--&& selectedContact.id == contact.id-->
<li class="margin20" ng-repeat="contact in contact.contacts track by $index" ng-click="$event.stopPropagation();toggleGroup(contact)" >
<span ng-class="{isClicked:currentClickedItem==contact.id}">{{contact.name}}</span>
<ul ng-if="contact.contacts && contact.contacts.length > 0 && iscollapsedArr.indexOf(contact.id) > -1">
<li class="margin40" ng-repeat="contact in contact.contacts track by $index" ng-click="$event.stopPropagation();toggleGroup(contact)" >
<span ng-class="{isClicked:currentClickedItem==contact.id}">{{contact.name}}</span>
</li>
</ul>
</div>
</li>
</ul>
</li>
</ul>
</body>
</html>