Can someone explain two things to me:
In Angular, HTTP requests made from the Http service are cold.
Cold in this context means that the HTTP request is not executed until someone joins the observable returned from Http.get, Http.post, etc. In addition, each HTTP-monitored subscription will cause another http request to be fired. This is because when observing a cold, the observed http is responsible for creating its producer (i.e. Ajax Request) when subscribing, and each subscription will create a separate value producer (i.e. Separate Ajax requests).
Thoughtram contains a detailed article on hot and cold observables.
Cold, as any request is just starting to produce value when you subscribe to it. No start
http.get().subscribe((response) => ...)
No request will be sent to the server. http.get()only one object.
http.get()
Source: https://habr.com/ru/post/1685173/More articles:Haskell polyvarian function without arguments - functional-programmingДобавление/Query/Parse SQLite с использованием Anko - androidApplying logic to defaultProps - javascriptHot and cold observations in Angular - angularDid the paging module come out? - cssBuild mode and associated counting functions Using custom aggregation functions for GroupBy in Dask - pythondeployed interactive web application requires hard upgrade - reactjsMakes Ale display Perl :: Critical violations as warnings, not errors - vimWhy does g ++ accept a reference type with a missing base type? - c ++Keras with TensorFlow support without GPU - dockerAll Articles