~/talk

Processor Pattern with Angular Dependency Injection

Talkat iJS 2018 · 2018-10-15..10-19· [angular]
slides:none on file

Claim: implement the Processor (Command) pattern inside Angular by registering multiple implementations under one InjectionToken and multi provider and injecting an array with @Inject to pick one by name. Concrete builds include ninja weapon processors and chart processors that replace a monolithic service of ~30 functions with small classes, strong-typed names, and private transform/draw methods. Integration with NgRx caching prevents repeated API calls so charts load from store after the first fetch; demo shows it works and simplifies unit testing.

AI-written summary · about

  1. 0:00Start
  2. 1:07Agenda
  3. 1:29Dependency Injection
  4. 5:27Dependency Injections Is Static
  5. 20:01Data Table Processor
~/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.