docs: fix accessing custom props from child pages (#21977)

This commit is contained in:
Zakir Hossen 2023-07-06 14:20:38 +06:00 committed by GitHub
parent e16680b7ef
commit f4be14a38a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ In addition, `NuxtPage` also accepts custom props that you may need to pass furt
<NuxtPage :foobar="123" /> <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"} ::ReadMore{link="/docs/guide/directory-structure/app"}
:: ::