Answer the question
In order to leave comments, you need to log in
How to bind progress bar to all methods calling http service?
Hello!
I am writing an application in Angular 4.
In CRUD services, http service methods are called to receive data from the server.
Is it possible to somehow bind the progress bar to all http service calls?
I tried the option with BrowserXhr, but since the release of the 4th version, this option is outdated and does not work.
Gives an error "browserXHR.build is not a function".
Thank you in advance!
Answer the question
In order to leave comments, you need to log in
All http requests you have should not go through pure http, but through a self-written wrapper service.
There you can add any basic to the url, do additional. error handling or logging them, or, for example, attach progressbar to requests
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question