#142 Using Services for HTTP Request | HTTP Client | A Complete Angular Course

#142 Using Services for HTTP Request | HTTP Client | A Complete Angular Course

procademy

5 месяцев назад

2,891 Просмотров

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 learn how we can do that in this lecture.

DOWNLOAD STARTUP FILES FOR THIS SECTION HERE: https://github.com/manojjha86/angular-16-complete-course/tree/main/14-angulat-http-client/start

DOWNLOAD FINAL COMPLETE FILES FOR THIS SECTION HERE: https://github.com/manojjha86/angular-16-complete-course/tree/main/14-angulat-http-client/final

Тэги:

#httpClient #hettp_get #http_angular #fetch_data_from_server #angular #angular_tutorial #complete_angular_course
Ссылки и html тэги не поддерживаются


Комментарии: