Commit 2125e40ad97ffda0125846470934a283f39bd309
1 parent
f894bd683d
Exists in
master
and in
1 other branch
recibo parámetro en el controlador para buscar articulos por idLista
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -4,9 +4,10 @@ angular.module('focaBusquedaProductos') |
4 | 4 | '$filter', |
5 | 5 | '$scope', |
6 | 6 | '$uibModalInstance', |
7 | + 'idLista', | |
7 | 8 | 'focaBusquedaProductosService', |
8 | - function($filter, $scope, $uibModalInstance, focaBusquedaProductosService) { | |
9 | - focaBusquedaProductosService.getProductos().then( | |
9 | + function($filter, $scope, $uibModalInstance, idLista, focaBusquedaProductosService) { | |
10 | + focaBusquedaProductosService.getProductosByIdLista(idLista).then( | |
10 | 11 | function(res) { |
11 | 12 | $scope.productos = res.data; |
12 | 13 | $scope.search(); |