-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to laod this with every Rest call #52
Comments
You should create custom Http service (actually, a wrapper around basic Http) and use it everywhere. On each put/get/post etc fire progress bar loading. |
In the most recent release of Angular 4.3, there is a functionality called HTTP interceptor. And you can use it for HTTP call progress tracking. Here is a link to the official doc: https://angular.io/guide/http#intercepting-all-requests-or-responses |
This may or may not be perfect but if It helps anyone based on angular 4.3, a recent example of this I had to do myself was:
Then in your
Stu |
Hello,
Can you please provide information on how to load this loading bar with rest call so that when i load any component it should ?
The text was updated successfully, but these errors were encountered: