Skip to content

Instantly share code, notes, and snippets.

@alphanetEX
Created July 19, 2017 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alphanetEX/7d3745b1d2ccc0f6fef4daa72fdaf7ca to your computer and use it in GitHub Desktop.
Save alphanetEX/7d3745b1d2ccc0f6fef4daa72fdaf7ca to your computer and use it in GitHub Desktop.
get tiendas // vtr robles
getTiendas() {
this._tiendaService.getTiendas()
.subscribe(
result => {
this.tiendas = result.data; // se guardara la informacion en el modelo de datos
this.status = result.status;
if (this.status !== "success") {
alert("Error conectando con la api!!!")
}
else {
}
},
error => {
this.errorMessage = <any>error;
if (this.errorMessage != null) {
console.error(this.errorMessage);
alert("Error en la peticion");
}
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment