angular / in-memory-web-api

The code for this project has moved to the angular/angular repo. This repo is now archived.
MIT License
1.18k stars 232 forks source link

POST-request is not processed if no Subscriber is registered on returned Observable #193

Closed Schmoho closed 6 years ago

Schmoho commented 6 years ago

I don't know whether this is intended or not, but I think it should at least be documented.

mithunshanbhag commented 6 years ago

Isn't this by design?

https://angular.io/guide/http#always-subscribe

An HttpClient method does not begin its HTTP request until you call subscribe() on the observable returned by that method. This is true for all HttpClient methods.