~/talk

Mastering Angular’s Dependency Injection

Talkat NG Belgrade Conf 2024 · 2024-05-23..05-24· [angular]
slides:none on file

A small library builds a configurable navigation sidebar using a typed InjectionToken default state (string[] with home and booking) and shows apps overriding it via provideNavigationState override in the app config and lazy modules adding links. Standalone components use the inject() API and the talk demos provider node hierarchy up to environment injectors. Per-instance variations use a nav-items directive that injects the local token and overwrites it from an input effect so the component shows different menus and it works.

AI-written summary · about

  1. 0:00Introduction to DI
  2. 1:47Configurable sidebar setup
  3. 3:13Injection tokens for state
  4. 6:00Local providers in components
  5. 8:28Multiple components with directives
  6. 9:53Directive implementation
  7. 10:36Closing 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.