RxJS Patterns in Angular
summary
Shows concrete RxJS patterns for Angular apps using a sample products UI that actually fetches lists details and suppliers and demonstrates which operators make those flows correct and efficient. Uses async pipe to avoid manual subscribe/unsubscribe, recommends subjects or behavior subjects for action streams, and explains higher‑order mapping with switchMap, mergeMap and concatMap to flatten inner observables and cancel or parallelize requests. Uses combination operators like combineLatest and forkJoin and IDE type hovers to verify pipeline types.
AI-written summary · about
chapters (13)
- 0:00Start
- 1:15Retrieving Data
- 3:03The Async Pipe
- 7:42Retrieve on Action Pattern
- 9:14Higher Order Mapping Operator
- 10:38Why Switch Map
- 11:38Marble Diagram
- 12:06Shape on Action Pattern
- 12:43Pattern for an Action
- 14:20Fork Join
- 15:20Retrieve Related Data Pattern
- 15:54Retrieve Related Data Pattern When There Is a One-to-One Relationship
- 17:11Why Merge Map and Not Switch Map
related talks
58mAngular and The Case for RxJS
37mReactive Programming with RxJS
53mRxJS Observables in Angular
45mReactive Frontends with RxJS and Angular
34mCollect, Combine and Cache RxJS Streams for User-Friendly Results
01h 07mReactive Frontends with RxJS and Angular - Sergi Almar
13mAngular: Let's get Reactive!
21mRxJS Best Practices Aren't Always Black and White
