I have this problem:
I was trying to add a simple loading bar to my angular project, but somehow i can't get it to work.
I was trying to implement this one: http://ift.tt/1b6GY1u
I have installed it with "npm install angular-loading-bar" with succes. And in my angular module, it is set as a dependency.
angular.module('myAppRename.view5', ['ngRoute', 'angular-loading-bar'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/view5', {
templateUrl: 'app/view5/view5.html',
controller: 'View5Ctrl'
});
}])
But somehow this makes my website crash, and with the developer tool opened, it get this error message:
Error: [$injector:modulerr] Failed to instantiate module myAppRename due to:
[$injector:modulerr] Failed to instantiate module myAppRename.view5 due to:
[$injector:modulerr] Failed to instantiate module angular-loading-bar due to:
[$injector:nomod] Module 'angular-loading-bar' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://ift.tt/1y6CE9X
What am i doing wrong?
Aucun commentaire:
Enregistrer un commentaire