Advertisement
Guest User

Untitled

a guest
Jul 15th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function getListHistorico (){
  2.         precargar.abrirMensaje();
  3.  
  4.         historicoObjetivosService.getListHistorico($scope.noEmpleado,$scope.anio)
  5.         .then(
  6.                 function(response) {
  7.                     precargar.cierraMensaje();
  8.                    
  9.                     for (var res in response) {
  10.                             for (var o in res.objetivos) {
  11.                                 $scope.listaHistorico.push(o);         
  12.                             }
  13.                     }
  14.                    
  15.                 } ,
  16.                 function (errResponse) {
  17.                     precargar.cierraMensaje();
  18.                     notificacion('Error!', 'Error al obtener el histórico del empleado.', 'error');
  19.                 }
  20.         )
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement