Hello I have a problem with my simple camera integration.
getting console error like this ->
Unkown provider : $cordovaCamera
here's my js.app code :
angular.module('starter', ['ionic']) .controller('CamCtrl', function($cordovaCamera, $scope, $timeout, $q, $ionicPopup) { $scope.takepic = function() { $cordovaCamera.getPicture({}) .then(function(data) { console.log('Camera data: ' + angular.toJson(data)); }, function(error) { console.log('Camera error: ' + angular.toJson(data)); }); }; $scope.showAlert = function() { $ionicPopup.alert({ title: 'Success', cssClass: 'Calm', content: 'Hello World!!!' }).then(function(res) { console.log('Test Alert Box'); }); }; });
Thanks!