Skip to content

Commit

Permalink
docs: fix accessing custom props from child pages (#21977)
Browse files Browse the repository at this point in the history
  • Loading branch information
devzakir committed Jul 6, 2023
1 parent e16680b commit f4be14a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/3.api/2.components/2.nuxt-page.md
Expand Up @@ -71,7 +71,7 @@ In addition, `NuxtPage` also accepts custom props that you may need to pass furt
<NuxtPage :foobar="123" />
```

For example, in above example, value of `foobar` will be available using `attrs.foobar`.
For example, in the above example, the value of `foobar` will be available using `$attrs.foobar` in the template or `useAttrs().foobar` in `<script setup>`.

::ReadMore{link="/docs/guide/directory-structure/app"}
::

0 comments on commit f4be14a

Please sign in to comment.