Angular Loading Spinner Component for API calls | HTTP Requests Globally | CodeWithSrini

  Рет қаралды 44,298

CodeWithSrini

CodeWithSrini

Күн бұрын

#Angular
Implementing a loading spinner for your application globally. The usual approach will be injecting a loading service on each angular service, then start the spinner every time a call is made and stop it every time an api call is completed.
Source: gist.github.co...
Other Video(s):
HTTP Interceptor: • How to Intercept HTTP ...

Пікірлер: 50
@armandhavenga5167
@armandhavenga5167 2 жыл бұрын
I have been struggling for about 2 days with this functionality and you resolved it in 15 min for me. You sir get my sub and like!
@abirmahmud3903
@abirmahmud3903 3 жыл бұрын
After few hours of googling I came to search in youtube. And got this video at the top result. Regreting searching in google first. Thank you so much brother. The tutorial was very very helpful.
@CodeWithSrini
@CodeWithSrini 3 жыл бұрын
I am glad, thank you soo much for stopping by.
@trapecioinv7313
@trapecioinv7313 2 жыл бұрын
This is the solution i was looking for! I have a lot of http request around my project and i can't subscribe each of them to intercept individual request. This is great and worked flawless! Note: I had to use 'resetSpinner()' instead of 'requestEnded()' in the 'if(event instanceof HttpResponse)' to make it work
@Alejo28356
@Alejo28356 Жыл бұрын
Me too!
@themysteryman-e2j
@themysteryman-e2j 4 жыл бұрын
Thanks a lot. very precise and clean tutorial. BTW your voice is so listenable
@stefanlarie2151
@stefanlarie2151 3 жыл бұрын
from my perspective, I really want to have that spinner when I needed,not on every request, and the spinners might be different from cases to cases, I`m a backend dev, not a front end one and this seems very rigid to me, but an awesome job for the content, I appreciate it!
@dibyamohanpanda3101
@dibyamohanpanda3101 2 жыл бұрын
Please tell me the editor and the theme you used in your video🙏🙏
@Alejo28356
@Alejo28356 Жыл бұрын
Muchas gracias por este video. Estuvo excelente!.
@abhijithjb4067
@abhijithjb4067 2 жыл бұрын
Why do we need an if(++this.count==1), basically an if condition inside service file? The loading works even without the if condition.. Can somebody help me with this doubt?
@sontungnguyen5667
@sontungnguyen5667 2 жыл бұрын
Good video! What does theme you use?
@stefanlarie2151
@stefanlarie2151 3 жыл бұрын
and the idea of new content for your might be something like an abstract service for the requests where you specify true/false if the overlay is needed or not and how it should look(default value a common one) thank you for the time !
@josephmilanmd
@josephmilanmd 3 жыл бұрын
Good explanation, I get so much ideas from this video ... Thank you
@psteja9917
@psteja9917 2 жыл бұрын
Hi am getting infinite loading spinner in one of my page, where more than 10-15 API calls are going on. If few APIs are failing the spinner is not stopping. HELP.
@johanperera7473
@johanperera7473 3 жыл бұрын
It was very helpful. But I got a question in the http interceptor. inside the pipe there is a method called tap. But my vs code says "cannot find name 'tap'". What can I do for that? I'm using angular version 10.1.6.
@alaamezian4828
@alaamezian4828 2 жыл бұрын
Thanks very helpful video and works like a charm
@ashishmittal7001
@ashishmittal7001 3 жыл бұрын
Is it necessary to use http interceptor? Can the start stop and reset be called inside a subscribe of an observable which has the value of the HTTP API call stored in it?
@divyashah721
@divyashah721 3 жыл бұрын
Very helpful video..thanks..!
@monishakrishnamoorthy6103
@monishakrishnamoorthy6103 4 жыл бұрын
This is great! Thanks!
@anil2009
@anil2009 4 жыл бұрын
How to create all other components of your project. Do I have to follow all videos in the angular 6/7 playlist
@CodeWithSrini
@CodeWithSrini 4 жыл бұрын
Hi Anil D thanks for the comment. This video demonstrates only creating the spinner component and service. Please let me know on what format you like the tutorial to be, i will create my future videos as per your suggestion. Thank you again. Stay home stat safe.
@anil2009
@anil2009 4 жыл бұрын
I mean create video from scratch app component . If you create a video with already existing components it is hard to understand
@CodeWithSrini
@CodeWithSrini 4 жыл бұрын
Oh really sorry about that, okay I will make sure my next videos will have it from scratch. Mean time also please check my other videos in playlist, most of them are in the likings of your. Thanks again, cheers :)
@larrysinining3845
@larrysinining3845 4 жыл бұрын
I hope you can make a video about downloading pdf file with a style like a receipt or prescription using angular 👍
@CodeWithSrini
@CodeWithSrini 3 жыл бұрын
Sure, thank you for sharing your request.
@trytocatch4859
@trytocatch4859 3 жыл бұрын
I need this too ..
@themysteryman-e2j
@themysteryman-e2j 4 жыл бұрын
Can it be possible to show a spleen screen to welcome a user after he successfully logged in?
@vigneshck1392
@vigneshck1392 4 жыл бұрын
thanks..this helps me a lot......
@pvsrod
@pvsrod 3 жыл бұрын
Thank you, that helped!!
@loubnalouna8787
@loubnalouna8787 2 жыл бұрын
thanks for this video
@pramodcool619
@pramodcool619 4 жыл бұрын
Thank you :)
@danielfelipetorresgarzon9186
@danielfelipetorresgarzon9186 4 жыл бұрын
thank you very much
@jayakumar2927
@jayakumar2927 3 жыл бұрын
what the interceptor changes can you share with me
@chacataplan
@chacataplan 2 жыл бұрын
Thk!!!!!!!!
@raviteja8798
@raviteja8798 2 жыл бұрын
hello sir, i have one doubt can you please resolve it please....please help me
@CodeWithSrini
@CodeWithSrini 2 жыл бұрын
Yes pls lemme know.
@pusarlaaishwarya5035
@pusarlaaishwarya5035 3 жыл бұрын
Can you provide code please
@CodeWithSrini
@CodeWithSrini 3 жыл бұрын
Hi, you can find the code here. gist.github.com/codewithsrini/2aae47073072b12cd21484aae47b61f9
@jayakumar2927
@jayakumar2927 3 жыл бұрын
​@@CodeWithSrini what the interceptor changes can you share with me
@dancewithzinnia
@dancewithzinnia 4 жыл бұрын
Can you provide interceptor code please
@CodeWithSrini
@CodeWithSrini 4 жыл бұрын
Hi zinnia rana, I am so sorry, I lost the codebase for interceptor. If I find one, will surely post it in GitHub and share your.
@CodeWithSrini
@CodeWithSrini 4 жыл бұрын
Hi zinnia rana, here you go github.com/codewithsrini/GenericAngularApp
@jayakumar2927
@jayakumar2927 3 жыл бұрын
share the code
Http Requests, Interceptors, Error Handling & more [Angular Series]
22:40
Deferrable Views - New Feature in Angular 17
15:31
Decoded Frontend
Рет қаралды 22 М.
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 19 МЛН
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 13 МЛН
Worst flight ever
00:55
Adam W
Рет қаралды 49 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 78 МЛН
What’s new in Angular v18
20:08
Angular
Рет қаралды 128 М.
Angular Http Caching using Interceptor and Refresh
22:29
CodeWithSrini
Рет қаралды 8 М.
Angular - Resolve & automatic loading spinner with overlay
5:11
Project Brackets
Рет қаралды 11 М.
Loading indicator done right | Angular Tips and Tricks
17:51
Code With Gio
Рет қаралды 7 М.
Add an Angular Loading Spinner with RxJS and Material
13:22
Zoaib Khan
Рет қаралды 18 М.
NgTemplateOutlet in Angular - Everything You Have to Know (2022)
35:15
Decoded Frontend
Рет қаралды 51 М.
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 19 МЛН