~/talk

Angular Dependency Injection, In Depth

Talkat Great International Developer Summit 2024 · 2024-04-23..04-26· [angular]
slides:none on file

Claim: Angular popularized browser dependency injection around 2010 and mirrors Spring/Java patterns while adding hierarchical injectors and component-scoped providers. Demo builds a car/engine/tires app using provider types useClass, useFactory, useValue, useExisting, shows that providedIn: 'root' is shorthand, that TypeScript interfaces are erased so use base classes, and that the Injector API works programmatically via inject()/runInInjectionContext. Live code runs successfully, component-level providers produce different instances, and optional/skipSelf/self/host modifiers change resolution.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:36History of dependency injection
  3. 8:34Basic dependency injection
  4. 17:21Programmatic injector usage
  5. 25:46Hierarchical injectors
  6. 34:10Advanced scoping and configuration
  7. 44:35Injecting with directives
  8. 48:43Injection context and APIs
  9. 51:55Conclusion and Q&A
~/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.