Skip to content

Commit 424cdfd

Browse files
eduardosolivchrisvfritz
authored andcommitted
Composing with Components - Change <ul> to <ol> (vuejs#577)
The example starts with <ul> and then the final code has <ol> (as it is a todo list makes more sense to be ordered). This is just a minor improvement to start with <ol> right away
1 parent a002c8e commit 424cdfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/guide/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,10 @@ Vue.component('todo-item', {
270270
Now you can compose it in another component's template:
271271

272272
``` html
273-
<ul>
273+
<ol>
274274
<!-- Create an instance of the todo-item component -->
275275
<todo-item></todo-item>
276-
</ul>
276+
</ol>
277277
```
278278

279279
But this would render the same text for every todo, which is not super interesting. We should be able to pass data from the parent scope into child components. Let's modify the component definition to make it accept a [prop](components.html#Props):

0 commit comments

Comments
 (0)