H
H
Howard Roark2017-05-27 18:03:25
Angular
Howard Roark, 2017-05-27 18:03:25

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

1 answer(s)
A
Alexander Manakov, 2017-05-27
@gogolor

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 question

Ask a Question

731 491 924 answers to any question