mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: Update 2.nuxt-page.md (#8761)
This commit is contained in:
parent
fe433a4222
commit
2376c1147f
@ -31,7 +31,7 @@ For example, passing `static` key, `NuxtPage` component is rendered only once wh
|
||||
|
||||
```html
|
||||
<!-- static key -->
|
||||
<NuxtPage page-key=“static” />
|
||||
<NuxtPage page-key="static" />
|
||||
```
|
||||
|
||||
Alternatively, `pageKey` can be passed as a `key` value via `definePageMeta` from the `<script>` section of your Vue component in the `/pages` directory.
|
||||
@ -51,7 +51,7 @@ definePageMeta({
|
||||
In addition, `NuxtPage` also accepts custom props that you may need to pass further down the hierarchy. These custom props are accessible via `attrs` in the Nuxt app.
|
||||
|
||||
```html
|
||||
<NuxtPage :foobar=“123” />
|
||||
<NuxtPage :foobar="123" />
|
||||
```
|
||||
|
||||
For example, in above example, value of `foobar` will be available using `attrs.foobar`.
|
||||
|
Loading…
Reference in New Issue
Block a user