mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
16 lines
631 B
Markdown
16 lines
631 B
Markdown
# App.vue
|
|
|
|
The new `app.vue` file, is the main component in your Nuxt3 applications.
|
|
|
|
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>
|
|
```
|