Instantly share code, notes, and snippets.

@wKoza /http.ts Secret
Last active Jan 14, 2017

Embed
What would you like to do?
Observable<Article[]> articles$ = this.http.get('api.learn-angular.fr/articles')
.map((res:Response) => res.json() as Article[])
.catch(this.handleError);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment