-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest1.html
48 lines (33 loc) · 871 Bytes
/
test1.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
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
</head>
<body>
<div ng-app="" ng-controller="customersController">
<div id="hideMe" ng-show="bhideDiv ">
Hide me div TestData=tdddfg23454dfgkljh7i64
</div>
<ul>
<li ng-repeat="x in names">
{{ x.Name + ', ' + x.Country }}
</li>
</ul>
</div>
<script>
function customersController($scope,$http, $timeout) {
$scope.bhideDiv = true;
$scope.names = [];
$scope.names.push({Name:"json", Country:"custom"});
$scope.intervalFunction = function () {
$timeout(function () {
$scope.names.push({Name:"test", Country:"data"});
$scope.bhideDiv = false;
}, 100);
};
// Kick off the interval
$scope.intervalFunction();
}
</script>
</body>
</html>