Commit baa4dfc9343820b67d6fca18a90ffaa7161a1f2f
1 parent
97ee93f75a
Exists in
master
botonera orden de carga
Showing
4 changed files
with
12 additions
and
7 deletions
Show diff stats
src/js/route.js
File was created | 1 | angular.module('focaCrearHojaRuta') | |
2 | .config(['$routeProvider', function($routeProvider) { | ||
3 | $routeProvider.when('/orden-carga', { | ||
4 | controller: 'focaOrdenCargaController', | ||
5 | templateUrl: 'src/views/orden-carga.html' | ||
6 | }); | ||
7 | }]); | ||
8 |
src/js/service.js
1 | angular.module('focaOrdenCarga') | 1 | angular.module('focaOrdenCarga') |
2 | .factory('focaOrdenCargaService', ['$http', 'API_ENDPOINT', function($http, API_ENDPOINT) { | 2 | .factory('focaOrdenCargaService', ['$http', 'API_ENDPOINT', |
3 | return { | 3 | function ($http, API_ENDPOINT) { |
4 | postLogin: function(login) { | 4 | return { |
5 | return $http.post(API_ENDPOINT.URL + '/login/crear', login); | 5 | }; |
6 | } | 6 | }]); |
7 | }; | ||
8 | }]); | ||
9 | 7 |
src/views/modal-login.html
src/views/orden-carga.html