Commit b47480a700360f0fa8a71778fd633546e97a851c

Authored by Luigi
1 parent 58888f8022
Exists in master

Timeout para agregar cisterna

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
src/js/controller.js
... ... @@ -384,8 +384,7 @@ angular.module('focaAbmVehiculo')
384 384 $scope.cisterna.idVehiculo = parseInt($routeParams.idVehiculo);
385 385 delete $scope.cisterna.vehiculo;
386 386 if (!$scope.cisterna.id) {
387   - $scope.cisternas.push($scope.cisterna);
388   - $scope.$apply();
  387 + $timeout(function() { $scope.cisternas.push($scope.cisterna);});
389 388 }
390 389 }
391 390