HTTP Service - Angular (Tutorial #18)

  Рет қаралды 33,336

Nisha Singla

Nisha Singla

Күн бұрын

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...
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 :

Пікірлер: 66
@anilpalakuri1610
@anilpalakuri1610 5 жыл бұрын
The way your explanation is simple clean and clear
@NishaSingla
@NishaSingla 4 жыл бұрын
thank you
@muralimanohar8677
@muralimanohar8677 5 жыл бұрын
first time in youtube amazing explanation ...
@NishaSingla
@NishaSingla 4 жыл бұрын
Thank you
@jagdishrohit3748
@jagdishrohit3748 4 жыл бұрын
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
@NishaSingla
@NishaSingla 4 жыл бұрын
Thank you Rashmi
@nagarjunavssirivella5948
@nagarjunavssirivella5948 3 жыл бұрын
Really Happy With your Explanation Madam
@NishaSingla
@NishaSingla 3 жыл бұрын
Glad to know that 😊🙏
@coding8061
@coding8061 4 жыл бұрын
Wow super ma'am I like your teaching flow love you ma'am
@muralimanohar2858
@muralimanohar2858 4 жыл бұрын
I like the way of your explanation
@NishaSingla
@NishaSingla 4 жыл бұрын
Thank you Murali
@suryateja2524
@suryateja2524 3 жыл бұрын
your teaching is very nice Madam(😎);
@NishaSingla
@NishaSingla 3 жыл бұрын
Thank you 🙏
@aravindgoud2753
@aravindgoud2753 4 жыл бұрын
its really amazing superb explanation thank you so much
@NishaSingla
@NishaSingla 3 жыл бұрын
You're most welcome
@IqbalAhmed-qk5ix
@IqbalAhmed-qk5ix 3 жыл бұрын
Awesome explaination Thank u so much mam
@NishaSingla
@NishaSingla 3 жыл бұрын
Keep watching
@yashkumarjani
@yashkumarjani 2 жыл бұрын
Helpful Video
@samr9142
@samr9142 4 жыл бұрын
Super helpful demo. I like the way you explained each and every area on the HTTP service in Angular. It's easy to digest. I would like to connect with you. Let me know your official contact information.
@NishaSingla
@NishaSingla 4 жыл бұрын
Glad you liked it
@vinoderramsetty1093
@vinoderramsetty1093 4 жыл бұрын
It's really amazing. Thank you for your time
@NishaSingla
@NishaSingla 4 жыл бұрын
Good to know it helped
@pranavis5586
@pranavis5586 4 жыл бұрын
Very very awesome explanation and awesome content...Im so in love with ur tutorial🤗🤗🤗
@NishaSingla
@NishaSingla 3 жыл бұрын
Thank you! Cheers!
@akiratoriyama1320
@akiratoriyama1320 4 жыл бұрын
In 2:06 you are referring to "FormsModule" and that you have imported it to your project. At which of your videos are you using/explaining angular forms? i might have missed it... Thanks for the great videos! Very helpful!!! Subscribed to your great content!!
@Gauravkumar-jm4ve
@Gauravkumar-jm4ve 4 жыл бұрын
Tx
@daalwada
@daalwada 6 жыл бұрын
Awesome! :) Thank you so much Nisha! :D :)
@NishaSingla
@NishaSingla 6 жыл бұрын
Thank you Rohan
@ravuladileep3814
@ravuladileep3814 5 жыл бұрын
Make a video on crud operations using angular8 and data strorage to json
@sarkari-mahiti
@sarkari-mahiti Жыл бұрын
Thank you so much😊❤
@uchiha__madara
@uchiha__madara 3 жыл бұрын
Please make video on CRUD operations
@sandeepkumarreddytadoori946
@sandeepkumarreddytadoori946 4 жыл бұрын
Please lemme know if you're running an institution in Bangalore, I would join for Javascript classes. Wonderful explanation by the way..
@NishaSingla
@NishaSingla 3 жыл бұрын
Thanks ..
@annukhulbe1057
@annukhulbe1057 2 жыл бұрын
how "users:any[] = []" has changed to "users:any" at 4:54 secs and you have not mentioned this change in your video ???
@bhaveshmoon1979
@bhaveshmoon1979 2 жыл бұрын
I also noticed it, do you know the reason
@jitujahagirdar613
@jitujahagirdar613 5 жыл бұрын
Hello Nisha, could you tell me how to data filter (search key ) on *ngFor in angular2 ? kindly reply
@coding8061
@coding8061 4 жыл бұрын
Hello ma'am where is get put delete of video please make I hope you make this type of video love you ma'am
@seshu4289
@seshu4289 Жыл бұрын
Hi mam .. this tutorial is helping me a lot.. But I'm getting an error that.. Property subscribe doesn't exist on type{'id: string; name : city.........}[]' please let me know why it is coming
@mallikamurugan1462
@mallikamurugan1462 3 жыл бұрын
Mam one doubt how to connect angular (loginform)data+ server+mongodb(database ) and how to pass data angular to server through store the database ...pls make a one video and explain it
@anaghakamble1293
@anaghakamble1293 2 жыл бұрын
Hello Nisha very nice explanation, but I am getting error while using subscribe method, the error is "Property subscribe does not exist on type void" could you pls help?
@devve7
@devve7 6 жыл бұрын
Gracias Nisha, buen video. Saludos desde Venezuela.
@NishaSingla
@NishaSingla 5 жыл бұрын
Thank you :)
@madanchilakaraju4358
@madanchilakaraju4358 4 жыл бұрын
The way your explanation is good and very simple...do more videos about angular
@maheshthete1126
@maheshthete1126 Жыл бұрын
Interview questions n answer vedio
@NeHaSingh-dw4pn
@NeHaSingh-dw4pn 2 жыл бұрын
Property 'get' does not exist on type 'UserService' why this error is coming in my localhost
@rajasekhar5135
@rajasekhar5135 4 жыл бұрын
Nice vedios, but y dont u cover all concepts u done only major concepts in the angular
@NishaSingla
@NishaSingla 4 жыл бұрын
Thank you 😊. Will try to upload more videos
@sanjivkumar-jh5cu
@sanjivkumar-jh5cu 5 жыл бұрын
asesome...
@Sukhbir_Ghangas
@Sukhbir_Ghangas 4 жыл бұрын
Loading bar code is missing. Please share link for the same.
@jayakumar2927
@jayakumar2927 3 жыл бұрын
difference between constructor and ngOnInit
@jayakumar2927
@jayakumar2927 3 жыл бұрын
Share the source code
@muppalladayakar5760
@muppalladayakar5760 4 жыл бұрын
You can add one project in angular
@NishaSingla
@NishaSingla 3 жыл бұрын
Thanks for suggestion
@friendsforever440
@friendsforever440 4 жыл бұрын
Please upload route guard
@NishaSingla
@NishaSingla 4 жыл бұрын
Sure
@jayakumar2927
@jayakumar2927 3 жыл бұрын
How to fetch data from db
@NishaSingla
@NishaSingla 3 жыл бұрын
RestApi which i have consumed that will pull data ... your REST api should call db
@jayakumar2927
@jayakumar2927 3 жыл бұрын
can you share code for this
@jayakumar2927
@jayakumar2927 3 жыл бұрын
@@NishaSingla share the code
HTTP Error Handling - Angular (Tutorial #19)
7:56
Nisha Singla
Рет қаралды 30 М.
@ViewChild/@ViewChildren in Angular (Tutorial 35)
19:31
Nisha Singla
Рет қаралды 65 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 1,6 МЛН
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 15 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 24 МЛН
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 638 М.
Services - Angular (Tutorial #17)
10:56
Nisha Singla
Рет қаралды 36 М.
Routing - Angular (Tutorial #20)
17:09
Nisha Singla
Рет қаралды 41 М.
What’s new in Angular v18
20:08
Angular
Рет қаралды 128 М.
Content Projection with ng-content (Tutorial 36)
15:57
Nisha Singla
Рет қаралды 28 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 1,6 МЛН