~/talk

Beyond TypeScript Metadata: Dependency Injection in Angular and Nest

Talkat NG-MY 2019 · 2019-07-06..07-07· [angular, typescript]
slides:none on file

Compares how Angular and Nest implement dependency injection, showing that Nest uses runtime TypeScript reflection while Angular AOT compiles away metadata (compiler emits hard‑coded factories), and highlights the actual keys and APIs involved such as design:paramtypes and the reflect-metadata calls. Explains practical limitations with interfaces and generics, the circular‑dependency workaround forwardRef, Nest’s module‑level injector and hierarchical lookup, and new Nest features like request scope and transient providers; cites ~300% GitHub star growth for Nest in 2018.

AI-written summary · about

  1. 0:00Introduction to NestJS
  2. 2:11Dependency Injection Basics
  3. 5:05Typescript Metadata
  4. 7:00Reflection API
  5. 9:23Angular vs NestJS DI
  6. 11:17IVY Renderer
  7. 12:12DI Challenges: Interfaces
  8. 14:08DI Challenges: Generics
  9. 15:32Circular Dependencies
  10. 17:54Injector Hierarchy
  11. 23:17Request-Scoped Providers
  12. 26:55Conclusion
~/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.