Skip to content

Commit

Permalink
docs: fix template syntax
Browse files Browse the repository at this point in the history
resolves #1979
  • Loading branch information
farnabaz committed Apr 18, 2023
1 parent e46309f commit 9d8478d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/content/4.api/1.components/2.content-list.md
Expand Up @@ -40,7 +40,7 @@ An explicit `path`{lang=ts} can be given to the component.
<template>
<main>
<ContentList path="/articles">
<template v-slot="{ list }">
<template #default="{ list }">
<!-- ...default slot -->
</template>
<template #not-found>
Expand Down
14 changes: 8 additions & 6 deletions docs/content/4.api/1.components/4.content-query.md
Expand Up @@ -62,12 +62,14 @@ The `not-found`{lang=ts} slot can be used to display a default content before re
```html [pages/about.vue]
<template>
<main>
<ContentQuery path="/about/authors" :where="{ type: 'csv' }" v-slot="{ data }">
<ul>
<li v-for="author of data" :key="author.name">
{{ author.name }}
</li>
</ul>
<ContentQuery path="/about/authors" :where="{ type: 'csv' }">
<template #default="{ data }">
<ul>
<li v-for="author of data" :key="author.name">
{{ author.name }}
</li>
</ul>
</template>
<template #not-found>
<p>No authors found.</p>
</template>
Expand Down

0 comments on commit 9d8478d

Please sign in to comment.