rpocklin / angular-ui-view-spinner

A declarative way to display loading spinners in angular.js for ui-router resolves the way you want them to appear.
Other
24 stars 5 forks source link

Module 'angularSpinner' is not available! #3

Closed johhansantana closed 8 years ago

johhansantana commented 8 years ago

I've installed angular ui view spinner with bower as the readme file stated, but I keep getting this error after I add it:

angular.module('myapp', ['angularSpinner', 'ui.router', 'angular-ui-view-spinner']) .config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider, $scope) { $urlRouterProvider.otherwise('/');

I brings the error. What am I doing wrong here?

I'm using AngularJS v1.4.7

rpocklin commented 8 years ago

Have you included the file which defines the angularSpinner module? That's probably why.

johhansantana commented 8 years ago

oh, I'm so sorry, I didn't, that fixed. Thank you.

rpocklin commented 8 years ago

I noticed bower.json didn't define the main / src files, which it should have - if you were using an auto-includer (ie. gulp/grunt -> index.html) that's probably why it failed. I've commited this and re-tagged v1.0.0