jameskleeh / angular-confirm

Confirmation modal dialog for AngularJS
Apache License 2.0
150 stars 75 forks source link

WARNING: Tried to load angular more than once. #67

Closed Bratkartoffl closed 8 years ago

Bratkartoffl commented 8 years ago

Hello there,

when I include the angular-confirm.min.js file in my index.html and then inject it into my main.js file, then I get the following warning shown in my console:

WARNING: Tried to load angular more than once.

Any Idea, why this warning is thrown?

Regards

jameskleeh commented 8 years ago

I don't think it has anything to do with this module. Angular itself is being included more than once on your page.

Megale commented 8 years ago

If you remove angular-confirm from your page do you still receive the warning?

Bratkartoffl commented 8 years ago

@Megale I tried that. I deleted the *js file include as well as the injection and then the warning was gone.. that why I thought it has something todo with this package.

jameskleeh commented 8 years ago

@Bratkartoffl It's something to do with your build. As you can see angular is not defined in this file: https://github.com/Schlogen/angular-confirm/blob/master/angular-confirm.min.js

Bratkartoffl commented 8 years ago

Okay i fixed it. It was a problem related to jquery. Thanks for your support!