Skip to content

Commit 25d8411

Browse files
committed
Replaced <content> with <slot>
1 parent 107a641 commit 25d8411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ Similarly, distributed content will be compiled in the parent scope.
527527

528528
Parent content will be **discarded** unless the child component template contains at least one `<slot>` outlet. When there is only one slot with no attributes, the entire content fragment will be inserted at its position in the DOM, replacing the slot itself.
529529

530-
Anything originally inside the `<content>` tags is considered **fallback content**. Fallback content is compiled in the child scope and will only be displayed if the hosting element is empty and has no content to be inserted.
530+
Anything originally inside the `<slot>` tags is considered **fallback content**. Fallback content is compiled in the child scope and will only be displayed if the hosting element is empty and has no content to be inserted.
531531

532532
Suppose we have a component with the following template:
533533

0 commit comments

Comments
 (0)