~/talk

Climbing up injector trees

Talkat Angular Connect 2018 · on Friday, 2018-11-09· [angular]

Live demo builds an Angular app in StackBlitz and shows that dependency lookup happens in two distinct trees: first the ElementInjector tree (component providers and DOM ancestry), then the ModuleInjector tree (NgModule providers), with lazy-loaded modules creating their own injectors. Content projection outcome surprises: projected nodes resolve against where they end up in the DOM, not where their template sits. Examples use Angular CLI snippets and StackBlitz; the demo runs, hits small errors, and is fixed live. Links and samples are at https://go.urish.org/injector-trees ModuleInjector

AI-written summary · about

  1. 0:00Angular injector basics
  2. 9:17Content projection
  3. 14:52Module injector trees
  4. 22:27Lazy loading and summary
~/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.