-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (38 loc) · 971 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ngeg</title>
<style>
main {
padding: 0 100px;
}
article {
background: gainsboro;
}
</style>
</head>
<body>
before application
<hr/>
<main ng-app="app">
<nav>menu here</nav>
<section ng-controller="manipulator-controller as mc">
<button type="button" ng-click="mc.onBagAdd()">Add</button>
<button type="button" ng-click="mc.onBagClear()">Clear</button>
</section>
<article ng-controller="article-controller as ac">
<ul>
<li ng-repeat="item in bag.items() track by $index">
<a ng-click="ac.onGreetingClick()" href="#">{{greeting}}</a>
{{item}}
</li>
</ul>
</article>
</main>
<hr/>
after application
<script src="bower_components/angular/angular.min.js"></script>
<script src="app.js"></script>
</body>
</html>