I have an app.js file where I specify my dependencies:
angular.module("myApp", ['angular-jwt', 'chart.js']).config(...)
I want an external file for directives, so in the .js directives I write:
angular.module('myApp').directive(...)
same for controller.js:
angular.module('myApp').controller('pokerstrazzkCtrl', function($scope, $http, jwtHelper) { ...
and this is the include script order in the html file:
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="https://cdn.rawgit.com/auth0/angular-jwt/master/dist/angular-jwt.js"></script>
<script src="Chart.min.js"></script>
<script src="angular-chart.js"></script>
<script src="controller.js"></script>
<script src="directives.js"></script>
<script src="app.js"></script>
when displayed in browsers, I do not get any console errors, and the source code of the page is exactly what I need, but I see only the background, text or other elements. What am I doing wrong?
source
share