RxJS: Reactive-Extensions for JavaScript with Angular 2

Can someone explain to me why Angular 2 requires the RxJS library and how it relates to Observables and Angular 2

+4
source share
1 answer

RxJS is the JavaScript reactive programming library used by Angular2.

In fact, the class Observablecomes from this library.

For example, the EventEmitterAngular2 class (which is a hot observable) extends the class Subjectfrom RxJS. See these lines in the source:

HTTP Observable :

, Angular2, Rxjs:

  • .
  • HTTP
  • ...

, , . , promises ...

, Observable , .

, , : https://gist.github.com/staltz/868e7e9bc2a7b8c1f754.

, , . Thierry

+2

Source: https://habr.com/ru/post/1625154/


All Articles