~/talk

Test Driving Vue 3

Talkat Vue.js Global 2020 · 2020-09-17..09-18· [javascript, testing, vue]
links:none on file
slides:none on file

Builds a reusable modal in a real demo using Vue CLI 4.5 and Vue 3, wiring state with createApp(...).mount() and the Composition API (ref, a useModalState module) instead of mixins; notes the root data must be a factory function and templates now allow fragments (multiple roots). Uses Teleport to #modal-wrapper so the modal renders at the document root, declares events with emits, and styles slot content with the v-slotted pseudo-selector; the demo runs as expected.

AI-written summary · about

  1. 0:00Intro
  2. 2:07What we'll build
  3. 2:41Installation with Vue CLI
  4. 3:17Resetting boilerplate
  5. 3:45Creating a Vue 3 app
  6. 5:41Declaring app data
  7. 6:04Vue 2 way
  8. 7:10Using a root component in Vue 3
  9. 8:14Simplifying syntax
  10. 8:31Defining root component
  11. 8:46Toggling modal state with button
  12. 9:06Creating modal component
  13. 10:22Refactoring with Composition API
  14. 14:15Reason for change?
  15. 17:15Teleporting content
  16. 19:35Rendered output
  17. 20:00Emitting events in Vue 3
  18. 22:06Styling slot content in Vue 3
  19. 24:42Get the slides and demo project
  20. 25:05Learn Vue 3 hands on in my video courses
~/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.