Last active
July 17, 2017 13:45
-
-
Save wKoza/9889fee0aadca4069c9a6ea3140890e9 to your computer and use it in GitHub Desktop.
httpclient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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