Aggiunto Photocamera

This commit is contained in:
Lorenzo Iovino 2016-01-30 18:42:06 +01:00
parent 314cefdc70
commit 35ed8465b5
15 changed files with 137 additions and 163 deletions

View file

@ -1,5 +1,19 @@
// Ionic Starter App
function takePicture()
{
console.log("PSOO");
navigator.camera.getPicture(function(imageURI) {
// imageURI is the URL of the image that we can use for
// an <img> element or backgroundImage.
}, function(err) {
// Ruh-roh, something bad happened
}, cameraOptions);
}
angular.module('underscore', [])
.factory('_', function() {
return window._; // assumes underscore has already been loaded on the page
@ -27,6 +41,8 @@ angular.module('your_app_name', [
'youtube-embed'
])
.run(function($ionicPlatform, PushNotificationsService, $rootScope, $ionicConfig, $timeout) {
$ionicPlatform.on("deviceready", function(){
@ -296,8 +312,8 @@ angular.module('your_app_name', [
}
}
})
.state('app.addTicketWithPhoto', {
url: "/addTicketWithPhoto",
.state('app.addticketwithphoto', {
url: "/addticketwithphoto",
views: {
'menuContent': {
templateUrl: "views/app/addTicketWithPhoto.html",
@ -334,7 +350,7 @@ angular.module('your_app_name', [
})
.state('app.category', {
url: "/category/:categoryId",
url: "/:categoryId",
views: {
'menuContent': {
templateUrl: "views/app/category.html",
@ -342,6 +358,15 @@ angular.module('your_app_name', [
}
}
})
.state('app.category-entries', {
url: "/booking/:sourceId",
views: {
'menuContent': {
templateUrl: "views/app/category-entries.html",
controller: 'CategoryEntriesCtrl'
}
}
})
;
// if none of the above states are matched, use this as the fallback