Skip to content

Commit 9a5a0b8

Browse files
committed
example: move app declaration to app.js
avoid spaghetti code and simplify the way to test
1 parent 7f719a1 commit 9a5a0b8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

example/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ <h1>{{pdfName}}</h1>
1919

2020
<script src="js/lib/angular.min.js"></script>
2121

22-
<script>
23-
var app = angular.module('App', ['pdf']);
24-
</script>
22+
<script scr="js/app.js"></script>
2523
<script src="js/controllers/docCtrl.js"></script>
2624
<script src="js/directives/angular-pdf.js"></script>
2725

example/js/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
var app = angular.module('App', ['pdf']);

0 commit comments

Comments
 (0)