Angular and The Case for RxJS
summary
Explains why RxJS is practical with Angular by showing working code: a type‑ahead with debounceTime and distinctUntilChanged that clarifies streams versus promises, an observable data service using a BehaviorSubject store that components subscribe to, and the template patterns that avoid duplicated HTTP requests — async pipe (which auto‑unsubscribes) or ngIf ... async as instead of multiple async pipes. Covers hot vs cold, subjects, share vs shareReplay, and flattening operators (switchMap/mergeMap/concatMap), with concrete fixes for duplicated calls and teardown.
AI-written summary · about
chapters (10)
- 0:00Start
- 9:58COLD OBSERVABLES
- 15:48BehaviorSubject
- 22:00HTTP OBSERVABLES ARE COLD
- 27:12HOT: SHARE THE EXECUTION COLD: INVOKE THE EXECUTION
- 33:14map() A TRANSFORMATIONAL OPERATOR
- 36:45A FILTERING OPERATOR
- 37:56AVOID NESTED SUBSCRIPTIONS
- 45:20EMITS ARRAY OF VALUES FROM SOURCES
- 50:29catchError() AN ERROR HANDLING OPERATOR
related talks
19mRxJS Patterns in Angular
47mReactive Programming in Angular with RxJS
13mAngular: Let's get Reactive!
37mReactive Programming with RxJS
53mRxJS Observables in Angular
51mReactive programming in Angular
28mWatch out: observers are here to stay
01h 07mReactive Frontends with RxJS and Angular - Sergi Almar
