I'm Watching You: A Tale of Observables
summary
Explains practical Observable use in Angular with RxJS, including an app that polls GitHub every 3s using interval and switchMap, a video-player state system replaced by a single stream, and concrete subject types: behavior subject keeps last value to retain UI state across components, replaySubject buffer 3 returning the last three emissions, and plain Subject for multicast. Demonstrates code: subscribe patterns, pipe operators (map/filter), showed replay creating multiple subscriptions, and reports no major performance issues at small buffer sizes.
AI-written summary · about
chapters (13)
- 0:00Start
- 3:00What Is an Observable
- 3:21Core Components of an Observable
- 3:43Observable Object
- 4:10Mouse Events
- 4:36User Inputs
- 5:22The Observer
- 8:49Subject
- 9:35Behavior Subject
- 10:23Replay Subject
- 11:26The Schedule
- 17:50Subject View
- 18:56Set Current View
related talks
44mWhat are Observables and why should I care?
53mRxJS Observables in Angular
22mMastering the Subject: Communication Options in RxJS
28mWatch out: observers are here to stay
13mAngular: Let's get Reactive!
29mSubjecting State to Good Behavior
41mDeep Dive into RxJS Observables
20mSubjecting State to Good Behavior
