~/talk

Dependency Injection for Future Generations

Talkat JSConf Budapest 2015 · 2015-05-14..05-15· [angular, typescript]
slides:none on file

Argues that Angular 2’s DI replaces Angular 1 pain points with a binding-based injector that is framework‑agnostic, supports synchronous and asynchronous creation via resolveAndCreate and toAsyncFactory, reads ES7 decorator metadata emitted by Babel or TypeScript, and uses child injectors for non-singleton instances. Shows concrete code: bind token→class/value/factory, promises returned for async factories, and injectPromise/injectLazy decorators to consume them. Demonstrations compile to ES5 and interoperate with existing module loaders, and the prototype‑style child/parent injector lookup actually works in practice.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30Pascals latest achievements
  3. 2:25What are you talking about
  4. 3:10Dependency Injection
  5. 10:30Problems
  6. 22:48Asynchronicity
  7. 30:48Questions
~/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.