Тёмный

HTTP Service - Angular (Tutorial #18) 

Nisha Singla
Подписаться 32 тыс.
Просмотров 32 тыс.
50% 1

HTTP services is the important part of any application which communicates with the server. Most front-end applications communicate with backend services over the HTTP protocol.
Use this link to share video: • HTTP Service - Angular...
Till Now we are getting a dummy users data but now we want to get live data somewhere from server
Now we require remote data server which provides HTTP Web Service, which we can call using Angular Front End.
You can create Web Service in any language like Java, PHP, .Net or NodeJS.
We can consume this web service using HttpClient in an angular app.
To keep this demo easy to understand by everyone we will consume a FAKE online web service and you can also test at your end easily :
So use this FAKE online REST API :
jsonplaceholder.typicode.com/u...
To use HTTP service first step is to enable HTTP Service
.For this we need to include a HttpClientModule in imports array in app.module.ts and this module is defined in library angular/common/http
After this in custom service file (UserService) we need to do Dependency Injection of HttpClient class and with this class make http call using get () method
Angular services return observable in response the way in Angular 1.x it returned promised. Angular services are lazy in nature
Observable are lazy in nature . So if any component want to get Observable it will act like a newspaper. Until unless
you will not subsribe for the newspaper service you will not get that.In same manner until unless you will not subscribe
the Observable you will not call the service .
If you liked my channel , subscribe to it and like my videos. For any queries ask you question in comment section
you can also connect with me @
Facebook: / angularjs4beginners
LinkedIn: / nisha-singla-82407aa0
Website :

Опубликовано:

 

8 июн 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 66   
@muralimanohar8677
@muralimanohar8677 4 года назад
first time in youtube amazing explanation ...
@anilpalakuri1610
@anilpalakuri1610 5 лет назад
The way your explanation is simple clean and clear
@jagdishrohit3748
@jagdishrohit3748 3 года назад
It is much more important for me . Thank you very much for providing this. I kindly request to you please proving more.
@rashmijena8396
@rashmijena8396 4 года назад
The Best Angular Tutorial till now..Thanks a lot Nisha
@nagarjunavssirivella5948
@nagarjunavssirivella5948 3 года назад
Really Happy With your Explanation Madam
@daalwada
@daalwada 6 лет назад
Awesome! :) Thank you so much Nisha! :D :)
@coding8061
@coding8061 4 года назад
Wow super ma'am I like your teaching flow love you ma'am
@vinoderramsetty1093
@vinoderramsetty1093 4 года назад
It's really amazing. Thank you for your time
@cartoonwalasudhir
@cartoonwalasudhir Год назад
Thank you so much😊❤
@yashkumarjani
@yashkumarjani 2 года назад
Helpful Video
@muralimanohar2858
@muralimanohar2858 4 года назад
I like the way of your explanation
@pranavis5586
@pranavis5586 3 года назад
Very very awesome explanation and awesome content...Im so in love with ur tutorial🤗🤗🤗
@akiratoriyama1320
@akiratoriyama1320 3 года назад
In
@aravindgoud2753
@aravindgoud2753 3 года назад
its really amazing superb explanation thank you so much
@IqbalAhmed-qk5ix
@IqbalAhmed-qk5ix 3 года назад
Awesome explaination
@Gauravkumar-jm4ve
@Gauravkumar-jm4ve 3 года назад
Tx
@suryateja2524
@suryateja2524 3 года назад
your teaching is very nice Madam(😎);
@jitujahagirdar613
@jitujahagirdar613 5 лет назад
Hello Nisha, could you tell me how to data filter (search key ) on *ngFor in angular2 ? kindly reply
@mmhgarcia
@mmhgarcia 5 лет назад
Gracias Nisha, buen video.
@ravuladileep3814
@ravuladileep3814 4 года назад
Make a video on crud operations using angular8 and data strorage to json
Далее
HTTP Error Handling - Angular (Tutorial #19)
7:56
Просмотров 29 тыс.
Promises vs Observables - Angular (Tutorial #30)
15:44
New model rc bird unboxing and testing
00:10
Просмотров 6 млн
Route Parameters - Angular (Tutorial #21)
14:40
Просмотров 33 тыс.
@ViewChild/@ViewChildren in Angular (Tutorial 35)
19:31
Sending a Post Request | Angular HTTP | Angular 13+
16:56
What Is A RESTful API? Explanation of REST & HTTP
18:38
Change detection and Angular signals in Angular v16
3:07