Using Service for HTTP Request | Angular HTTP | Angular 13+

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

Oh my god!!! You just SAVE ME!!!! thank you, thank you, thank you SO VERY MUCH!!!! I'm from Brazil... Oh God... I was lost!!!! I have been looking for some classes about Ionic and Firebase! I watched several videos in YouTube and built several apps... But in the very end I couldn't connect with firebase. Never! Out of the blue your playlist come along... Wooowwww... You are so amazing! I just finish my app project for college using all your classes! You Thank =D 🤩

RMagno
Автор

This is the best resource for angular at this point.

akashghosh
Автор

hi sir, thanks, you really helping everyone, please do more, keep up the good work

arundeveloper
Автор

You teach me a lot. Thank you very much! Please tell me what model/Product be like.

suewang
Автор

Where is that .pipe at line 37 at, right after the closing parenthesis of the get method?

gonsalomon
Автор

hello, im having a problem with CORS policy. it says that the header is missing. i hope someone can help.

alfredocarreon
Автор

Why do we have to return the observable at the beginning itself?

alkagopi
Автор

Hello. Would you please show this http requests with async/await? Thanks a lot.

Алексей-жзи
join shbcf.ru