urish / angular-spinner

Angular directive to show an animated spinner (using spin.js)
MIT License
693 stars 146 forks source link

Ploblem about angularjs-spinner #72

Closed NSLog0 closed 7 years ago

NSLog0 commented 9 years ago

when I access any page that include "us-spinner" directive I go error like this "TypeError: b is not a function" error on console screen shot 2558-10-27 at 14 02 29

my Dependencies

screen shot 2558-10-27 at 14 18 28

I think it conflict with some Dependency, but I'm not sure

boddicheg commented 9 years ago

@avatarr, please replace minified file "/bower_components/angular-spinner/angular-spinner.min.js" to non-minified "/angular-spinner/angular-spinner.js" and check error. Thanks

pasqLisena commented 8 years ago

I have the same error! Without minification is

SpinJSSpinner is not a function
at Object.<anonymous> (angular-spinner.js:90)
pasqLisena commented 8 years ago

I solved! I had the import of spin.js after angular-spinner.js. I just switched the two and now it works :smile:

deepakmani commented 8 years ago

Thanks for leaving this comment. Its working for me now.

nkantkumar commented 8 years ago

First spin.js and then angular-spinner.js should be loaded. Please avoid to use minified version. It will work.

ghost commented 7 years ago

Hi community folks,

We've decided to refactor the whole base code because of the many requests of webpack and amd compatibility issues, and we're using already webpack in master branch (+TypeScript).

You don't need to include spin.js anymore for angular-spinner to work, because it resolves as a dependency and webpack is bundling the both into one base code