~/talk

Collect, Combine and Cache RxJS Streams for User-Friendly Results

Talkat ngVikings 2019 · 2019-05-27..05-28· [reactive-programming, angular]
slides:none on file

Shows concrete RxJS code that replaces imperative GET-and-subscribe patterns with declarative observables: services expose streams consumed by the template via the async pipe, enabling onPush change detection. Demonstrates combining lookups with products using combineLatest, handling nested related requests with concatMap/mergeMap/switchMap, creating action streams with Subject/BehaviorSubject, and caching backend results with shareReplay so the rebuilt UI reuses data without extra round trips.

AI-written summary · about

  1. 0:00Intro
  2. 0:58Declarative approach to
  3. 1:32Sample Application - Reactive Development
  4. 2:06Current Pattern for Retrieving Data
  5. 2:48Declarative Pattern for Retrieving Data
  6. 4:04Template
  7. 6:17More Declarative, More Reactive
  8. 8:16Declaratively Define the Category Stream
  9. 10:18RxJS Creation Function: combineLatest
  10. 11:21Combining the Streams
  11. 15:43concatMap - Waits
  12. 16:51mergeMap - Runs in parallel
  13. 18:14switchMap - Always wants the next one
  14. 19:47Reacting to Actions
  15. 20:35Creating an Action Stream private productSelectedAction - new Subject number()
  16. 24:11Combining Data and Action Streams
  17. 26:39Emitting Re-executes the Pipeline
~/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.