This commit is contained in:
Lorenzo Iovino 2016-01-31 01:51:03 +01:00
parent bbc225bd17
commit 6bf83665f7
16 changed files with 113 additions and 85 deletions

View file

@ -269,12 +269,22 @@ angular.module('your_app_name', [
}
})
.state('app.allTickets', {
url: "/allTickets",
.state('app.alltickets', {
url: "/alltickets",
views: {
'menuContent': {
templateUrl: "views/app/allTickets.html",
controller: 'AllTicketsCtrl'
controller: 'CategoryCtrl'
}
}
})
.state('app.allshop', {
url: "/allshop",
views: {
'menuContent': {
templateUrl: "views/app/allTickets.html",
controller: 'CategoryCtrl'
}
}
})

View file

@ -544,6 +544,9 @@ angular.module('your_app_name.controllers', [])
})
.controller('AllTicketsCtrl', function($scope, $http) {
})
.controller('AllShopCtrl', function($scope, $http) {
})
.controller('HomeCtrl', function($scope, $http) {
$scope.home_categories = [];
@ -559,7 +562,12 @@ angular.module('your_app_name.controllers', [])
$scope.categoryId = $stateParams.categoryId;
console.log($scope.categoryId);
$scope.modifica=false;
$scope.cambiaModifica = function()
{
$scope.modifica=!$scope.modifica;
}
switch($scope.categoryId)
{
case "addticketwithphoto":
@ -591,6 +599,16 @@ angular.module('your_app_name.controllers', [])
console.log("odod");
break;
}
case "alltickets":
{
$scope.categoryTitle = "Tutti I Biglietti";
break;
}
case "allshop":
{
$scope.categoryTitle = "Tutti Gli Acquisti";
break;
}
}