~/talk

Deep dive into content projection

Talkat NGConf 2018 · on Thursday, 2018-04-19· [angular, frontend-architecture]
github:youdz
slides:none on file

Demonstrates that Angular's content projection matches ng-content at build time so projected nodes move rather than recreate, explains why cloning projected items fails and why an ngIf on an ng-content does not recreate a new instance, shows the supported escape hatches: undocumented ngProjectAs to remap selectors, using TemplateRef + ngTemplateOutlet (and ngFor/ngIf) to produce multiple independent instances, and using a portal pattern to move content while preserving the original lifecycle and working counters.

AI-written summary · about

  1. 0:00Intro
  2. 0:34Let's count sheep!
  3. 0:46ngFarm
  4. 1:32Basic content projection
  5. 2:04Targeted projection
  6. 2:54With a container
  7. 4:15ng ProjectAs
  8. 5:56Cloning sheep (again)
  9. 6:24Playing hide and seek
  10. 7:03What does
  11. 9:19Blueprints, a.k.a TemplateRefs
  12. 11:08Breeding sheep
  13. 13:58"Lifecycle" issues
  14. 16:01Portals
  15. 17:59What did we learn?
~/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.