Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Unknown provider: $cordovaCameraProvider

$
0
0

@blunder wrote:

It looks like there is something wrong with the cordova-plugin-camera.

After adding the plugin via:

ionic plugin add cordova-plugin-camera

and adding the $cordovaCamera dependency to my controller:

.controller('CameraCtrl', function($scope, $cordovaCamera){
...
}

I get the following error:

0     977452   error    Error: [$injector:unpr] Unknown provider: $cordovaCameraProvider <- $cordovaCamera <- CameraCtrl

I've noticed that the camera obj is added to the global navigator so I guess the plugin is really installed but I dont know what's going on.

Same result under ionic 1.2.4, ionic 1.1.1 (though it seems is something related to the plugin itself and not ionic).

Any help?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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