RxJS is a framework-agnostic JavaScript library for reactive programming, providing observables, subjects, and operators for composing asynchronous event streams and evolving application state. section 5.0 section 5.2
Use RxJS in Angular applications to:
- Handle asynchronous HTTP operations through observables returned by HttpClient. section 5.2
- React to reactive-form changes through controls’ valueChanges observables. section 5.2
- Share changing state between components with subjects or dedicated state-management solutions such as NgRx. section 1.2.1 section 5.2
- Transform and combine streams with built-in operators or application-specific custom operators. section 5.2
Angular uses RxJS internally and exposes it through APIs such as EventEmitter, HttpClient, and the async pipe. Its flexibility makes it powerful but can also make reactive logic complex; signals provide a complementary synchronous model, while RxJS continues handling asynchronous work. Observables can become signals holding their latest value, and signals can become observables emitting on value changes. section 5.2 section 6.6 section 6.1
Shared authorization state
Represent authorization with an isAuth$ subject so components receive both the current authorized state and events when that state changes. section 5.2

