Skip to content

Instantly share code, notes, and snippets.

@wKoza

wKoza/http.ts Secret

Last active January 14, 2017 14:59
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 wKoza/f4c6ac3d72fa3396bbe253db321d399d to your computer and use it in GitHub Desktop.
Save wKoza/f4c6ac3d72fa3396bbe253db321d399d to your computer and use it in GitHub Desktop.
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