Created
April 24, 2020 15:34
-
-
Save NyaGarcia/dea1b69a708c4ed08f9110d61928f0af to your computer and use it in GitHub Desktop.
Using switchMap to get fromFetch data
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
// If we just want the data, we can do something like this | |
ghibliFilmResponse$ | |
.pipe(switchMap(response => response.json())) | |
.subscribe(console.log); | |
// [Object, Object, Object...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment