Vue Composition API Migration Guide - bcgov/healthgateway GitHub Wiki
The <template>
section in most components shouldn't need to change at all.
The <script lang="ts">
block will need to change to <script setup lang="ts">
. The examples below should cover how to convert the various items within.
For suggestions on code organization, see Suggested Script Structure.
- Child Components
- Emitting Custom Events
- Getters
- Lifecycle Events
- Properties and Functions
- Props
- Vuex Actions and Getters
- Watchers