Instantly share code, notes, and snippets.

@wKoza /httpclient.ts
Last active Jul 17, 2017

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