~/lightning

5 cool usages of inject function in Angular - Lightning talk

Lightningat NG-BE 2023 · 2023-03-23..03-24· [angular]
links:none on file
slides:none on file

Title claims five concrete patterns using Angular 14+ inject with code that actually runs: a short, working useOnDestroy helper that auto-completes observable streams; replacements for decorators with useHostBinding and a host-listener approach that can run outside zone for fewer change detection cycles; composable utilities that interoperate; and a more complex useOnChanges that turns input changes into a switchMap-able stream. The uploader includes a small homework set including a useHttpResource sketch.

AI-written summary · about

  1. 0:00Managing observables
  2. 3:16Host binding alternatives
  3. 4:53Host listener utilities
  4. 6:21Reactive input changes
  5. 9:08Final thoughts and homework
~/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.