Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. eliminarContacto(contacto: Contacto) {
  2. this._contactoService.deleteContacto(contacto.id)
  3. .subscribe(
  4. result => {
  5. this.status = result.status;
  6.  
  7. if (this.status != "success") {
  8. console.log("Error en el servidor");
  9. }
  10. this.getContactos();
  11. },
  12. error => {
  13. this.errorMessage = <any>Error;
  14. if (this.errorMessage != null) {
  15. console.log(this.errorMessage);
  16. }
  17. }
  18. );
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement