-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
67 lines (66 loc) · 1.69 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!doctype html>
<html>
<head>
<title>Exploring Angular</title>
</head>
<body ng-app="exp-ang">
<div style="width: 500px; height: 300px; background-color: lightgray;" ea-mouse-over="eventStream">
<p>Mouse over to increment count</p>
</div>
<div ng-controller="EventConsumerController as controller">
<div>
<h3>Event consumer</h3>
<div>
<label>Hit count: </label>
<span>{{controller.hitCount}}</span>
</div>
<div>
<label>X pos: </label>
<span>{{controller.xPos}}</span>
</div>
<div>
<label>Finished: </label>
<span>{{controller.finished}}</span>
</div>
<div>
<label>Error: </label>
<span>{{controller.eventError}}</span>
</div>
</div>
<div>
<h3>Custom consumer</h3>
<div>
<label>Current value: </label>
<span>{{controller.currentCustomValue}}</span>
</div>
<div>
<label>Finished: </label>
<span>{{controller.customFinished}}</span>
</div>
<div>
<label>Error: </label>
<span>{{controller.customError}}</span>
</div>
<button ng-click="controller.finishCustom()">Finish</button>
<button ng-click="controller.generateCustomError()">Error</button>
</div>
<div>
<h3>Array consumer</h3>
<div>
<label>Current value: </label>
<span>{{controller.arrayCurrentValue}}</span>
</div>
<div>
<label>Finished: </label>
<span>{{controller.arrayFinished}}</span>
</div>
<div>
<label>Error: </label>
<span>{{controller.arrayError}}</span>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.7/angular.min.js"></script>
<script src="/dist/bundle.js"></script>
</body>
</html>