Using the map operator to transform data
When making the API/HTTP calls in a web application, it is often the case that the server doesn't return the data in a form that is easier to directly render to the UI. We often need some sort of transformation of the data received from the server to map it to something our UI can work with. In this recipe, you're going to learn how to use the map operator to transform responses from an HTTP call.
Getting ready
The app that we are going to work with resides in start/apps/chapter05/rx-map-operator
inside the cloned repository:
- Open the code repository in your Code Editor.
- Open the terminal, navigate to the code repository directory and run
npm run serve rx-map-operator
to serve the project
This should open the app in a new browser tab and you should see the following:
Now that we have the app running locally, let's see the steps of the recipe in the...