Nuxt/docs/content/2.app/1.app.md

16 lines
631 B
Markdown
Raw Normal View History

2021-04-20 12:16:09 +00:00
# App.vue
The new `app.vue` file, is the main component in your Nuxt3 applications.
2021-06-30 16:32:22 +00:00
If you would like to customize the global website entrypoint, you can create `app.vue` in your project directory. Nuxt will automatically detect it and load it as the parent of all other pages within your application. This will be primarily useful for adding code that should be run on every single page of your site (see [page layouts](/app/pages#layouts) creating dynamic layouts).
**Note:** Don't forget to use `<NuxtPage>` component somewhere inside `app.vue`.
```vue [app.vue]
<template>
<div>
<NuxtPage />
</div>
</template>
```