Commit e41dd574778754bc493e3adcad138b504961298c
Exists in
master
Merge branch 'master' of https://debo.suite.repo/modulos-npm/foca-busqueda-cliente
Showing
3 changed files
Show diff stats
src/js/component.js
src/js/controller.js
| 1 | 1 | angular.module('focaBusquedaCliente') |
| 2 | - .controller('focaBusquedaClienteController', [ | |
| 3 | - '$scope', | |
| 4 | - '$uibModal', | |
| 5 | - function($scope, $uibModal) { | |
| 6 | - $scope.abrirModal = function() { | |
| 7 | - $uibModal.open({ | |
| 8 | - animation: false, | |
| 9 | - templateUrl: 'src/views/foca-busqueda-cliente-modal.html', | |
| 10 | - backdrop: false, | |
| 11 | - controller: 'focaBusquedaClienteModalController' | |
| 12 | - }).result.then(function(cliente){ | |
| 13 | - console.log(cliente); | |
| 14 | - }); | |
| 15 | - }; | |
| 16 | - } | |
| 17 | - ]) | |
| 18 | 2 | .controller('focaBusquedaClienteModalController', [ |
| 19 | - '$uibModalInstance', | |
| 20 | - 'focaBusquedaClienteService', | |
| 21 | - '$scope', | |
| 3 | + '$uibModalInstance', 'focaBusquedaClienteService', '$scope', | |
| 22 | 4 | function($uibModalInstance, focaBusquedaClienteService, $scope) { |
| 23 | 5 | $scope.obtenerClientesPorNombreOCuit = function(textoBusqueda) { |
| 24 | 6 | return focaBusquedaClienteService |
src/views/foca-busqueda-cliente.html
| ... | ... | @@ -1 +0,0 @@ |
| 1 | -<button ng-click="abrirModal()">Seleccionar cliente</button> |