-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathisolateScope.html
More file actions
54 lines (47 loc) · 1.31 KB
/
isolateScope.html
File metadata and controls
54 lines (47 loc) · 1.31 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Isolate Scope</title>
<link rel="stylesheet" href="css/foundation.min.css">
<link rel="stylesheet" href="css/custom.css">
</head>
<body>
<!-- ISOLATE SCOPE WITH & -->
<div ng-app="phoneApp">
<div ng-controller="AppCtrl">
<div phone dial="callHome(message)"></div>
</div>
</div>
<!-- ISOLATE SCOPE WITH = SIGN -->
<!--
<div ng-app="drinkApp">
<div ng-controller="AppCtrl">
<label>Ctrl</label>
<input type="text" ng-model="ctrlFlavor">
<label>Directive</label>
<div drink flavor="ctrlFlavor"></div>
</div>
</div>
<!-- ISOLATED SCOPE WITH @ SIGN -->
<!--
<div ng-app="drinkApp">
<div ng-controller="AppCtrl">
<input ng-model="ctrlFlavor">
<div drink flavor="{{ctrlFlavor}}"></div>
</div>
</div>
-->
<!--
<div ng-app="choreApp">
<div ng-controller="ChoreCtrl">
<kid done="logChore(chore)"></kid>
</div>
</div>
-->
<!-- JAVASCRIPT -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script src="js/isolateScope.js"></script>
<!-- END JAVASCRIPT -->
</body>
</html>