mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: fix accessing custom props from child pages (#21977)
This commit is contained in:
parent
e16680b7ef
commit
f4be14a38a
@ -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"}
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user