controller.js
1 KB
angular.module('focaBotoneraPrincipal')
.controller('focaBotoneraPrincipalController', [
'$scope', '$location',
function($scope, $location) {
$scope.botones = [
{
texto: 'Abrir Turno',
clase: 'botonera-principal-abrir-turno',
accion: '/turno-apertura'
},
{
texto: 'Cerrar Turno',
clase: 'botonera-principal-cerrar-turno',
accion: '/turno-cierre'
},
{
texto: 'Nota Pedido',
clase: 'botonera-principal-nota-pedido',
accion: '/venta-nota-pedido/crear'
}
];
$scope.irA = function(accion) {
console.log(accion);
$location.path(accion);
};
$scope.logout = function() {
$location.path('/logout');
};
}
]);