~/talk

Components: Life Beyond Init and Destroy

Talkat AngularUP 2018 · 2018-06-01..06-30· [angular]
slides:none on file

Shows concrete techniques and working code: fixes broken hash navigation by combining ViewChildren, AfterViewInit and ActivatedRoute.fragment to scroll when an ngFor finishes rendering; replaces manual subscriptions with async pipe, ngIf‑else and template refs for declarative loading; uses ContentChild/AfterContentInit to access projected elements and call directive methods (changes highlight to red); demonstrates OnPush with Object.freeze causing a read‑only error and the correct fix via Object.assign to replace references; repo includes demo apps and an optimistic update example.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:12Classic component lifecycle
  3. 2:58Async pipe and ngIf-else
  4. 4:03Smooth scrolling with hash links
  5. 7:10AfterViewInit for initial scroll
  6. 9:22Content projection basics
  7. 11:32Accessing projected content
  8. 15:02Change detection strategies
  9. 17:09OnPush and immutability
  10. 20:02Detecting input changes
  11. 22:25DoCheck lifecycle hook
  12. 23:10Summary and resources
~/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.