mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +00:00
docs: remove path for <ContentDoc>
in example (#24244)
This commit is contained in:
parent
3238225476
commit
1b6f738fb8
@ -41,7 +41,8 @@ To render content pages, add a [catch-all route](/docs/guide/directory-structure
|
|||||||
```vue [pages/[...slug\\].vue]
|
```vue [pages/[...slug\\].vue]
|
||||||
<template>
|
<template>
|
||||||
<main>
|
<main>
|
||||||
<ContentDoc :path="$route.path" />
|
<!-- ContentDoc returns content for `$route.path` by default or you can pass a `path` prop -->
|
||||||
|
<ContentDoc />
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user