fedor.belov fedor.belov - 1 year ago 73
HTTP Question

How to make http call and don't subscribe to response

I need to make multiple http calls and don't subscribe to response (let's assume the response is always

). Looks like Angular will not make http request if subscription list is empty. How to force it?

Answer Source

Observables are lazy and don't do anything unless subscribe() is called.
You don't need to do anything though when data arrives


will do.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download