-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cordovaHTTP can not be register #155
Comments
Hi There, any fix to this. I installed this plugin last night and it was working but getting the same problem above now. |
the CordovaHTTP.js that exposes angular module gets injected AFTER your app.js has been bootstrapped. You can view the order how files are loaded by injecting yourself in to In order to fix it, you could try to do manual bootstrapping after the files have loaded. See more info: https://docs.angularjs.org/guide/bootstrap#manual-initialization |
Hi Chris, I didn't have much success with the manual bootstrap but what did work for me was just commenting out cordovaHTTP in angular.module. The plugin works fine so all good :-) Thanks for reply |
no problem. For anyone else struggling & just to let you know-: the best practice for ionic apps is to bootstrap your application manually. This ensures the dependencies are resolved in the correct order and avoids issues like these. Here is an example how to manually bootstrap which works for web & phones:
|
It's a Ionic project. When I register cordovaHTTP in main module ,browser console that:
and my code is:
I can't use this plugin. Is there anything wrong with me?
The text was updated successfully, but these errors were encountered: