liveBook · Manning

RxJS

As explained in Modern Angular

RxJS is a JavaScript and TypeScript library for composing asynchronous and event-based programs with observable sequences.

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

How Modern Angular covers it

How deep it goes
Explains observables, subjects, operators, Angular integration, and conversion with signals without detailing operator internals.
Examples
Uses HTTP requests, reactive-form valueChanges, authorization subjects, EventEmitter, async pipes, and custom operators.
What it assumes
Assumes familiarity with Angular HTTP calls while introducing reactive programming and RxJS capabilities beyond basic request handling.
What you can do after
Apply it via Angular HTTP, reactive forms, shared subjects, stream operators, and signal interoperability.
How it connects
Connects observables, subjects, operators, HttpClient, reactive forms, async pipes, Angular, NgRx, and signals.

Also explained in

Compare how 2 books explain RxJS →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Modern Angular. The section links point to the parts of the book it draws on.