diff --git a/docs/vue/quickstart.md b/docs/vue/quickstart.md index de98ac8bc6d..c7a5e4bbde8 100644 --- a/docs/vue/quickstart.md +++ b/docs/vue/quickstart.md @@ -56,7 +56,7 @@ npm uninstall --save typescript @types/jest @typescript-eslint/eslint-plugin @ty 5. Delete the `shims-vue.d.ts` file. -6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `App.vue` and `views/Home.vue`. +6. Remove `lang="ts"` from the `script` tags in any of your Vue components that have them. In a blank Ionic Vue app, this should only be `App.vue` and `views/HomePage.vue`. ## A look at a Vue Component @@ -91,27 +91,22 @@ If we open `App.vue` we should see the following: - ``` -Let's break it down, starting with the first group of imports. +Let's break it down, starting with the imports. ```tsx -import { IonApp, IonRouterOutlet } from '@ionic/vue'; + ``` -To use a component in Vue, you must first import it. So for Ionic Framework, this means anytime we want to use a Button or a Card, it must be added to our imports. In the case of our `App` component, we are using `IonApp` and `IonRouterOutlet`. You can also register components globally if you find yourself importing the same components repeatedly. This comes with performance tradeoffs that we cover in [Optimizing Your Build](#optimizing-your-build). +To use a component in Vue, you must first import it. So for Ionic Framework, this means anytime we want to use a Button or a Card, it must be added to our imports. In the case of our `App` component, we are using `IonApp` and `IonRouterOutlet`. Vue's [`script setup` syntax](https://vuejs.org/api/sfc-script-setup.html) gives the template access to those components as `` and ``. + +You can also register components globally if you find yourself importing the same components repeatedly. This comes with performance tradeoffs that we cover in [Optimizing Your Build](#optimizing-your-build). From there, let's look at the template. @@ -125,25 +120,6 @@ From there, let's look at the template. All Vue components must have a ` -