mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
docs(guide): add use of NuxtLayout
in app.vue
with pages (#5225)
This commit is contained in:
parent
1fda73267a
commit
223adc9bc2
@ -65,6 +65,16 @@ definePageMeta({
|
||||
</script>
|
||||
```
|
||||
|
||||
And in your `app.vue` you need to wrap the `NuxtPage` component with the `NuxtLayout` component.
|
||||
|
||||
```vue{}[app.vue]
|
||||
<template>
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
</template>
|
||||
```
|
||||
|
||||
::alert{type=info}
|
||||
Learn more about [defining page meta](/guide/directory-structure/pages#page-metadata).
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user