controller.js
1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
angular.module('focaModalFormaPago')
.controller('focaModalFormaPagoController', [
'$timeout', '$filter', '$scope', '$uibModalInstance', 'focaModalFormaPagoService',
function ($timeout, $filter, $scope, $uibModalInstance, focaModalFormaPagoService) {
//#region Variables
$scope.botonesTarjetas = [];
$scope.showForm = false;
//#endregion
init();
function init() {
$scope.botonesTarjetas = focaModalFormaPagoService.getBotonera();
}
$scope.seleccionarTarjeta = function () {
animateForm();
};
$scope.cancel = function () {
$uibModalInstance.dismiss('cancel');
};
$scope.select = function (iva) {
$uibModalInstance.close(iva);
};
function animateForm() {
$scope.showForm = false;
$timeout(function () {
$scope.showForm = true;
}, 100);
}
}]
);