~/talk

DI Deep Dive

Talkat AngularUP 2017 · on Sunday, 2017-06-25· [angular, compilers-and-language-design]
slides:none on file

Covers how Angular’s injector is a token->instance store that uses TypeScript types at compile time (hence @Injectable/@Component) instead of AngularJS’s fragile string keys which can be accidentally overwritten. Shows creating non-class keys with InjectionToken, the registration options useClass / useValue / useFactory / useExisting, and using ngUpgrade’s $injector via useFactory to adapt AngularJS services. Explains hierarchical injectors and how component-level providers give each component its own service instance.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:04Speaker background
  3. 2:57Problems with manual injection
  4. 5:10Detailed drawbacks
  5. 9:35Introduction to DI
  6. 10:48AngularJS dependency system
  7. 14:14Angular 2+ DI system
  8. 17:31Registration and providers
  9. 20:32Advanced injection techniques
  10. 25:30Component-level providers
  11. 28:22Summary and conclusion
~/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.