filmov
tv
Converting a Vue component to the Composition API
Показать описание
In this 14 minute video, I'll walk you through as I convert an existing Vue component from the Options API to the newer Composition API. I created a basic e-commerce shopping cart with the Options API, containing props, methods, and computed properties. In this high-level overview, I transform that component to use the Composition API, which has a drastically different code structure (but one that I think you'll enjoy).
You'll learn:
- What script setup does
- The difference between ref and reactive
- How to create methods and computed properties
- Why to switch to the Composition API
- 0:00 Intro
- 02:10 Getting started with setup()
- 03:33 Introducing ref and reactive
- 05:11 Using script setup
- 06:32 Including props
- 07:02 Adding methods
- 09:22 Including computed properties
- 11:38 Why use the Composition API
- 14:09 Wrapping up
You'll learn:
- What script setup does
- The difference between ref and reactive
- How to create methods and computed properties
- Why to switch to the Composition API
- 0:00 Intro
- 02:10 Getting started with setup()
- 03:33 Introducing ref and reactive
- 05:11 Using script setup
- 06:32 Including props
- 07:02 Adding methods
- 09:22 Including computed properties
- 11:38 Why use the Composition API
- 14:09 Wrapping up
Converting a Vue component to the Composition API
Converting a Vue component to Livewire (using NovaPackages.com) - Matt Stauffer Livestream
Vue 3 Composition API - Converting Over A Vue 2 Component
Vue Tutorial #4 - Break up your app into Vue Components
How to create a Web Component in Vue
Lazy Loading in Vue and Laravel | Converting Livewire component to Vue 3 component
Publish a Vue Component to NPM // Vite and Vue 3
Convert your HTML to a Vue Single File Component Template using Search and Replace in IntelliJ
Stop Making This Common Vue Mistake
Vue explained to React Developers in 6 mins
Vue.js 3 | Understanding How to Pass Data From Child to Parent With Emit Function
Convert Self-Hosted Models List into Vue Component
Vue.js Explained in 100 Seconds
Are You Following This Vue Best Practice?
6 Levels of Vue Component Reusability | Vue.js Live 2024
[Live-Coding] Vue.js Component to Livewire Component
How to convert Figma to Vue
How To Change - Use Components Dynamically In Vue JS 2 Dynamic Components
Vue Router Tutorial - Reuse Components (2018)
How Vue.js as a web framework optimises rendering speed
Transfer Data Between Components In Vue JS
Writeable computed properties are great for updating vue props
How to convert a Figma Design System into Vue components with a single line of code
Vue JS 3 Tutorial - 29 - Components
Комментарии