Skip to content

Commit 9f49241

Browse files
committed
Merge pull request #135 from posva/1.0
Replaced <content> with <slot>
2 parents 7053f02 + 25d8411 commit 9f49241

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)