Created
August 10, 2017 16:17
-
-
Save cironunes/0157a90aeeb09566191543ed795b9a0c to your computer and use it in GitHub Desktop.
Angular former Http example
This file contains hidden or 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
// Http | |
this.users = this.http.get('https://api.github.com/users') | |
.map(response => response.json()) | |
.subscribe(data => console.log(data)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment