Last active
May 28, 2019 03:49
-
-
Save alvarocamillont/ed98552e15c0efb45fe31dfc6170507f 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
this.http | |
.get<People>('https://swapi.co/api/people/1/') | |
.subscribe((data: People) => { | |
this.people = data; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment