Last active
April 7, 2017 20:10
-
-
Save matthieu-D/0ce3e1673e402fc91e85c47e8a4a7de4 to your computer and use it in GitHub Desktop.
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
ngOnInit() { | |
this.http.get('https://jsonplaceholder.typicode.com/posts') | |
.map(this.extractData) | |
.subscribe(this.handleData, this.handleError, this.handleComplete); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment