~/talk

Slots, Slots, Slots, Everybody!

slides:none on file

Live demos show Web Components, Vue and Angular slot behavior: a component proves content passed outside a template uses the host stylesheet while template content only sees its own CSS, and specificity can override an imported stylesheet; React has no slots. Built a dynamic list component that takes an array and v-for’s items into a named item slot, created scoped slots with shot count exposing number/message and an increment function, and exercised Angular’s ngTemplateOutlet conditional projection plus shadow DOM encapsulation — all examples run in the repos and slides.

AI-written summary · about

  1. 0:00Slots in web components
  2. 1:06Slot placement and template tags
  3. 2:10CSS scoping in slots
  4. 2:53Slots in React vs Vue vs Angular
  5. 3:37Default slots in Vue
  6. 4:41Named slots in Vue
  7. 5:46Default and named slots in Vue
  8. 6:07Conditional slots in Vue
  9. 7:10Scoped slots in Vue
  10. 8:34Dynamic list components with slots
  11. 9:58Renderless components with slots
  12. 11:22Content projection in Angular
  13. 12:03Named slots in Angular
  14. 12:45Slot selection with CSS
  15. 13:50Conditional content projection
  16. 15:37CSS and shadow DOM in Angular
  17. 18:25Summary 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.