Form of Art.
summary
A live demo shows a seat‑selection system built with Angular reactive forms backed by server updates (websocket or polling), where each seat is a custom FormControl per seat that gets disabled when occupancy events arrive. The form uses Observables (switchMap, BehaviorSubject, scan) to initialize, count selections, and combine streams, and an async validator hitting DB service to check occupancy and unselect / disable seats while showing a five‑second error. Code patterns include avoiding emitEvent on programmatic disables.
AI-written summary · about
chapters (12)
- 0:00Intro
- 1:30Demo
- 3:20Architecture
- 4:37Why a form
- 5:35Reactive programming
- 10:25Initializing Form
- 15:39Creating a Form Array
- 17:30Realtime Updates
- 18:09Disable Control
- 21:20Array Validation
- 22:47Factory Function
- 32:04Notes
related talks
43mReactive Powered: RxJS with Angular Forms
31mExtreme reactive forms in Angular
50mReactive Powered: RxJS with Angular Forms
35mLet's Build a Form Around It
31mEnterprise Grade Angular Reactive Forms
25mForm of Art: Validation in Angular Forms
48mHandling Angular Forms Without Losing Your Sanity
24mReactive Powered: RxJS with Angular Forms
