editar consignatarios con history.back
This commit is contained in:
parent
27608619e6
commit
c4d9cf1478
|
@ -5,7 +5,7 @@ export const NAME = 'vnClientAddressesDataEdit';
|
|||
export const COMPONENT = {
|
||||
template: template,
|
||||
controllerAs: 'addressData',
|
||||
controller: function($http, $stateParams, copyObject, equalsObject) {
|
||||
controller: function($http, $stateParams, copyObject, equalsObject, $window) {
|
||||
this.address = {};
|
||||
$http.get(`/client/api/Addresses/${$stateParams.addressId}`).then(
|
||||
json => {
|
||||
|
@ -34,6 +34,7 @@ export const COMPONENT = {
|
|||
}
|
||||
);
|
||||
}
|
||||
$window.history.back();
|
||||
};
|
||||
|
||||
this.copyAddress = () => {
|
||||
|
@ -43,5 +44,5 @@ export const COMPONENT = {
|
|||
}
|
||||
};
|
||||
|
||||
COMPONENT.controller.$inject = ['$http', '$stateParams', 'copyObject', 'equalsObject'];
|
||||
COMPONENT.controller.$inject = ['$http', '$stateParams', 'copyObject', 'equalsObject', '$window'];
|
||||
module.component(NAME, COMPONENT);
|
||||
|
|
Loading…
Reference in New Issue