-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.html
32 lines (29 loc) · 1.43 KB
/
main.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
<!DOCTYPE html>
<html data-ng-app="app">
<head>
<title>Angular JS Test</title>
<script src="lib/angular.min.js"></script>
<script src="lib/angular-resource.min.js"></script>
<script src="lib/angular-route.min.js"></script>
<script src="js/app.js"></script>
<script src="js/services/navigationService.js"></script>
<script src="js/controllers/appController.js"></script>
<script src="js/services/appService.js"></script>
<script src="directives/pluginList/pluginListDirective.js"></script>
<script src="directives/pluginList/pluginListController.js"></script>
<script src="directives/pluginDetail/pluginDetailDirective.js"></script>
</head>
<body>
<div data-ng-controller="appController">
{{hello}}, {{count}}<br/>
<button data-ng-click="addCount()">Add Count</button><br/>
<!-- href doesn't work with programmatic routes, because HTML defines a particular action for a link (i.e., navigation) -->
<!-- using programmatic routes with HREF only works in HTML5 mode, otherwise it will switch route twice (one for the HREF, the other using the location service) -->
<a href="{{pluginsRoute}}">Get plugins via constant</a>
<br/>
<!-- buttons do, because HTML does not define a particular action from a button -->
<button data-ng-click="getPluginsRoute()">Get plugins programatically</button>
</div>
<data-ng-view></data-ng-view>
</body>
</html>