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

Camera plugin not working

$
0
0

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!


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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