Vue Composition API Migration Guide - bcgov/healthgateway GitHub Wiki

Introduction

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.

Examples

Essential

Supplementary

Incomplete

Documentation

⚠️ **GitHub.com Fallback** ⚠️