Commit 509378d5a7e2e7b314be4d76eda57acbf782ab0f
1 parent
ae1833afa8
Exists in
master
detalles
Showing
3 changed files
with
4 additions
and
4 deletions
 
Show diff stats
README.md
| 1 | # foca-modal-unidad-medida | 1 | # foca-modal-lista-precio | 
| 2 | 2 | ||
| 3 | Modal de lista de unidades de medida | ||
| 3 | Modal de listas de precio | 
src/etc/develop.js.ejemplo
| 1 | angular.module('focaModalUnidadMedida') | 1 | angular.module('focaModalListaPrecio') | 
| 2 | .constant("API_ENDPOINT", { | 2 | .constant("API_ENDPOINT", { | 
| 3 | 'URL': '//127.0.0.1:9000' | 3 | 'URL': '//127.0.0.1:9000' | 
| 4 | }); | 4 | }); | 
| 5 | 5 | 
src/js/service.js
| 1 | angular.module('focaModalListaPrecio') | 1 | angular.module('focaModalListaPrecio') | 
| 2 | .service('focaModalListaPrecioService', ['$http', 'API_ENDPOINT', | 2 | .factory('focaModalListaPrecioService', ['$http', 'API_ENDPOINT', | 
| 3 | function($http, API_ENDPOINT) { | 3 | function($http, API_ENDPOINT) { | 
| 4 | return { | 4 | return { | 
| 5 | getListasPrecio: function() { | 5 | getListasPrecio: function() { | 
| 6 | return $http.get(API_ENDPOINT.URL + '/lista-precio'); | 6 | return $http.get(API_ENDPOINT.URL + '/lista-precio'); | 
| 7 | } | 7 | } | 
| 8 | }; | 8 | }; | 
| 9 | }]); | 9 | }]); | 
| 10 | 10 |