Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Unknown provider: $cordovaProvider

$
0
0

I had a similar problem, I updated and then suddenly I was getting the "Unknown provider: $cordovaOauthProvider <- $cordovaOauth".

It turns out that in ngCordova now provides ngCordovaOauth separately. In the "lib/ngCordova/README.md" file it reads: - Oauth (available separately)

So, first installed ng-cordova-oauth

$ bower install ng-cordova-oauth -S

Then, I included the file in my app's index.html

<script src="lib/ng-cordova-oauth/dist/ng-cordova-oauth.min.js"></script>

Finally included the module in my app.js

angular.module('myapp', [
  'ionic',
   ...
  'ngCordova',
  'ngCordovaOauth',
   ...
])

That got the app back up and running.

Don't know yet what further changes in my own auth controller are needed.

Hope it helps,


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>