How to return an object from within the then of a Promise in Angular 4

0

I have a simple question about Promise. Would anyone know how to proceed?

I want to return an object from within the then. I'll give you an example ...

buscarUsuario(id): Usuario {
return this.userService(id)
  .then( user => {
    //QUERO RETORNAR ESSE OBJETO
  });
}
    
asked by anonymous 24.02.2018 / 22:23

0 answers