Skip to content

update component-slots.md #1342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/guide/component-slots.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The slot does **not** have access to `<todo-button>`'s scope. For example, tryin
Clicking here will {{ action }} an item
<!--
The `action` will be undefined, because this content is passed
_to_ <todo-button>, rather than defined _inside_ the
to <todo-button>, rather than defined inside the
<todo-button> component.
-->
</todo-button>
Expand Down Expand Up @@ -224,7 +224,7 @@ The rendered HTML will be:
</div>
```

Note that **`v-slot` can only be added to a `<template>`** (with [one exception](#abbreviated-syntax-for-lone-default-slots))
Note that **`v-slot` can only be added to a `<template>`** (with [one exception](#abbreviated-syntax-for-lone-default-slots)).

## Scoped Slots

Expand Down