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