Earlier, we saw that fromFetch will create an observable from the Fetch API. Knowing what we now know about promises. Can you head over to the playground and implement an observable that hits our Pokémon API?
Here is what you need to know:
- The API should be running on
http://localhost:3333/api/pokemon. - Remember: You need to call the observable
exampleand export it usingexport constfor it to work.
Nota bene: If you're struggling to get your local server up and running, the API is also hosted at https://rxjs-api.glitch.me/api/pokemon.