Skip to content

Commit ed8d027

Browse files
dacodekidchrisvfritz
authored andcommitted
Fix an error in Component Example (#521)
The current example will produce an error as there is no "todos" `props` that introduced yet.
1 parent c1586e0 commit ed8d027

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/guide/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,8 @@ Now you can compose it in another component's template:
265265
<ul>
266266
<!--
267267
Create an instance of the todo-item component
268-
for each todo in a todos array
269268
-->
270-
<todo-item v-for="todo in todos"></todo-item>
269+
<todo-item></todo-item>
271270
</ul>
272271
```
273272

0 commit comments

Comments
 (0)