Commit 77820e68e2fdb87f65aa46df4ab9f8f3e407bd2f

Authored by Eric Fernandez
1 parent ac7b013a33
Exists in master

uso de nombres descriptivos para las variables

Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
src/js/controller.js
1 angular.module('focaModal') 1 angular.module('focaModal')
2 .controller('focaModalConfirmController', [ 2 .controller('focaModalConfirmController', [
3 '$uibModalInstance', '$scope', 'text', 3 '$uibModalInstance', '$scope', 'textoModal',
4 function($uibModalInstance, $scope, text) { 4 function($uibModalInstance, $scope, textoModal) {
5 $scope.param = text; 5 $scope.textoModal = textoModal;
6 $scope.cancelar = function() { 6 $scope.cancelar = function() {
7 $uibModalInstance.close(false); 7 $uibModalInstance.close(false);
8 }; 8 };
9 $scope.aceptar = function() { 9 $scope.aceptar = function() {
10 $uibModalInstance.close(true); 10 $uibModalInstance.close(true);
11 }; 11 };
12 } 12 }
13 ]) 13 ])
14 .controller('focaModalAlertController', [ 14 .controller('focaModalAlertController', [
15 '$uibModalInstance', '$scope', 'text', 15 '$uibModalInstance', '$scope', 'textoModal',
16 function($uibModalInstance, $scope, text) { 16 function($uibModalInstance, $scope, textoModal) {
17 $scope.param = text; 17 $scope.textoModal = textoModal;
18 $scope.aceptar = function() { 18 $scope.aceptar = function() {
19 $uibModalInstance.close(true); 19 $uibModalInstance.close(true);
20 }; 20 };
21 } 21 }
22 ]); 22 ]);
23 23