Skip to content

Commit 705fea0

Browse files
Added slot to todo list component (#763)
* 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. * fix: changed wording on slot Co-authored-by: Natalia Tepluhina <[email protected]>
1 parent 6ff094a commit 705fea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/component-slots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ app.component('todo-list', {
247247
})
248248
```
249249

250-
We might want to replace the slot to customize it on parent component:
250+
We might want to replace the `{{ item }}` with a `<slot>` to customize it on parent component:
251251

252252
```html
253253
<todo-list>

0 commit comments

Comments
 (0)