Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Update 2.nuxt-page.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JiatLn committed Nov 7, 2022
1 parent fe433a4 commit 633b7a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/3.api/2.components/2.nuxt-page.md
Expand Up @@ -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.
Expand All @@ -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`.
Expand Down

0 comments on commit 633b7a9

Please sign in to comment.