From e562ba973d555c77d4547e7622aca89ed8b25c8a Mon Sep 17 00:00:00 2001 From: Yotam Date: Thu, 24 Dec 2020 11:36:09 +0200 Subject: [PATCH 1/2] Added slot to todo list component Added slot to todo list component to emphasize the fact that you can replace the content with custom content. As the sentence states, this won't work without scoped slots. --- src/guide/component-slots.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/component-slots.md b/src/guide/component-slots.md index 85e8c35fea..4dfbceff83 100644 --- a/src/guide/component-slots.md +++ b/src/guide/component-slots.md @@ -240,7 +240,7 @@ app.component('todo-list', { template: ` ` From f12147a947bfbdec94c8003d4a0de6e1cb2af6bb Mon Sep 17 00:00:00 2001 From: Natalia Tepluhina Date: Sun, 10 Jan 2021 07:46:57 +0100 Subject: [PATCH 2/2] fix: changed wording on slot --- src/guide/component-slots.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/guide/component-slots.md b/src/guide/component-slots.md index 4dfbceff83..beb6a8973f 100644 --- a/src/guide/component-slots.md +++ b/src/guide/component-slots.md @@ -240,14 +240,14 @@ app.component('todo-list', { template: ` ` }) ``` -We might want to replace the slot to customize it on parent component: +We might want to replace the `{{ item }}` with a `` to customize it on parent component: ```html