Skip to content

Instantly share code, notes, and snippets.

Last active Jan 14, 2017
What would you like to do?
Promise<Article[]> articles = this.http.get('')
.then((res: Response) => res.json() as Article[])
private handleError(error: any): Promise<any> {
console.error('Une erreur est survenue : ', error);
return Promise.reject(error.message || error);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment