Skip to content

Commit

Permalink
example: move app declaration to app.js
Browse files Browse the repository at this point in the history
avoid spaghetti code and simplify the way to test
  • Loading branch information
simobasso committed Dec 15, 2015
1 parent 7f719a1 commit 9a5a0b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ <h1>{{pdfName}}</h1>

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

<script>
var app = angular.module('App', ['pdf']);
</script>
<script scr="js/app.js"></script>
<script src="js/controllers/docCtrl.js"></script>
<script src="js/directives/angular-pdf.js"></script>

Expand Down
1 change: 1 addition & 0 deletions example/js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var app = angular.module('App', ['pdf']);

0 comments on commit 9a5a0b8

Please sign in to comment.