~/talk

Subjecting State to Good Behavior

Talkat ng-conf 2019 · 2019-05-01..05-03· [angular, frontend-architecture]
slides:none on file

Shows concrete, runnable patterns using RxJS instead of NgRx: a small APOD app and a NEO app that use BehaviorSubject + scan to compose immutable OnPush-ready state, a private subject exposed via asObservable, and a single public set/update API. Demonstrates optimistic updates with rollback (UI updates immediately, API success leaves it, API error reverts and emits an error), and explains where this saves code and when a full store is warranted.

AI-written summary · about

  1. 0:00Introduction
  2. 0:32State Management in Angular
  3. 2:27Subjects
  4. 3:28Service with Subject
  5. 4:19Public Observable
  6. 5:06Example App
  7. 5:59State Service
  8. 8:07Data Service
  9. 9:08App Component
  10. 9:48Optimistic Updates
  11. 11:03Demonstration
  12. 12:35Creating a state class
  13. 14:15Dismissing errors
  14. 15:53Handling errors
  15. 17:12Conclusion
~/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.