In this lecture you are going to learn how we can use services to make HTTP requests. Usually, in a real world application, we don't write HTTP request calls in the component class. The component should only have UI related logic.
When dealing with data from the backend server, we should always use service which contains the logic for fetching the data, posting data, deleting or updating data. Then component should use the methods from this service class.
Let's see hoo we can do that in this lecture.
12 сен 2024