angular.module('focaBotoneraPrincipal') .controller('focaBotoneraPrincipalController', [ '$scope', '$location', '$cookies', 'botones', 'focaModalService', function($scope, $location, $cookies, botones, focaModalService) { $scope.paginas = []; $scope.paginas.push(botones.data); $scope.irA = function(accion) { $location.path(accion); }; $scope.logout = function() { $location.path('/logout'); }; $scope.showTerminal = function() { var key = $cookies.get('terminalKey'); focaModalService.alert('SU TERMINAL ES: ' + key); }; } ]);