~/talk

Extreme reactive forms in Angular

Talkat FrontEnd Con 2018 · 2018-12-04..12-05· [angular]
slides:none on file

Live demo of a theater-seat picker built with Angular Reactive Forms and RxJS that keeps form state in sync with route params and a real-time seat feed (WebSocket or polling). Uses nested FormArrays, a ControlValueAccessor seat component, async validator that switchMap to seat-check API to reject already-occupied seats, and programmatic disable/enable with emitEvent:false to avoid spurious value-change counts. Error messages stream via a Subject, seat count uses scan, and occupied/released updates apply without rebuilding the form.

AI-written summary · about

  1. 0:00Intro
  2. 0:37About me
  3. 1:07Demo
  4. 2:50Architecture
  5. 3:59Why form
  6. 5:02Reactive programming
  7. 8:27Use case
  8. 9:19Form implementation
  9. 11:16Form construction
  10. 15:15Disable seat
  11. 17:54Set or patch value
  12. 20:06Validation
  13. 26:21Errors
  14. 28:56Count
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.