Commit 77820e68e2fdb87f65aa46df4ab9f8f3e407bd2f
1 parent
ac7b013a33
Exists in
master
and in
1 other branch
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 | 1 | angular.module('focaModal') |
2 | 2 | .controller('focaModalConfirmController', [ |
3 | - '$uibModalInstance', '$scope', 'text', | |
4 | - function($uibModalInstance, $scope, text) { | |
5 | - $scope.param = text; | |
3 | + '$uibModalInstance', '$scope', 'textoModal', | |
4 | + function($uibModalInstance, $scope, textoModal) { | |
5 | + $scope.textoModal = textoModal; | |
6 | 6 | $scope.cancelar = function() { |
7 | 7 | $uibModalInstance.close(false); |
8 | 8 | }; |
... | ... | @@ -12,9 +12,9 @@ angular.module('focaModal') |
12 | 12 | } |
13 | 13 | ]) |
14 | 14 | .controller('focaModalAlertController', [ |
15 | - '$uibModalInstance', '$scope', 'text', | |
16 | - function($uibModalInstance, $scope, text) { | |
17 | - $scope.param = text; | |
15 | + '$uibModalInstance', '$scope', 'textoModal', | |
16 | + function($uibModalInstance, $scope, textoModal) { | |
17 | + $scope.textoModal = textoModal; | |
18 | 18 | $scope.aceptar = function() { |
19 | 19 | $uibModalInstance.close(true); |
20 | 20 | }; |