In this video we build out a dynamic & reusable modal component using vue 3. We create this using the composition api, slots & props.     

Repo: https://github.com/johnkomarnicki/vue-3-modal/tree/master/app

Timestamps: 
0:00 Introduction
1:17 Project Setup
9:12 Create Modal Component (Markup/HTML)
12:57 Import/Use Modal Component
15:51 Toggle Modal Open/Close
17:44 Create Emit/Event With Composition API
20:05 Modal Styling
27:16 Animating Modal With Vue Enter & Leave Transitions 

-----------------------------------------------------------------------------------------------------
Helpful Reference's:
Nodejs: https://nodejs.org/en/ 
Vue CLI: https://cli.vuejs.org/ 
Vue 3 Composition API docs: https://v3.vuejs.org/guide/composition-api-introduction.html 
Vue 3 Slots: https://v3.vuejs.org/guide/component-slots.html 
Vue 3 Animations: https://v3.vuejs.org/guide/transitions-overview.html 

#vue #javascript 



 

Build out a Dynamic & Reusable Modal Component using Vue 3
70.15 GEEK