Friends I'm trying to use the camera with ionic this is the controller for the camera but when I run it, I get the error: ionic.bundle.js: 20434 ReferenceError: Camera is not defined and I have removed the plugin platforms and nothing. what can i do
.controller('camaraCtrl', function($scope, $cordovaCamera) {
var options = {
destinationType: Camera.DestinationType.DATA_URL,
encodingType: Camera.EncodingType.JPEG
}
$scope.PictureUrl = 'http://placehold.it/150x150';
$scope.TomarFoto = function() {
$cordovaCamera.getPicture(options)
.then(function(data) {
console.log('camara' + angular.toJson(data));
$scope.PictureUrl = "data:image/jpeg;base64," + data;
}, function(error) {
console.log('camara err' + angular.toJson(data));
})
}
})