Skip to content

Commit 4b00b87

Browse files
committed
Merge pull request #47 from jsedlacek/master
fix broken demo
2 parents 817c497 + b7b123b commit 4b00b87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/guide/components.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,15 +334,15 @@ By default, the transitions for incoming and outgoing components happen simultan
334334
For an Array of Objects, you can combine `v-component` with `v-repeat`. In this case, for each Object in the Array, a child ViewModel will be created using that Object as data, and the specified component as the constructor.
335335

336336
``` html
337-
<ul id="demo-2">
337+
<ul id="demo-4">
338338
<!-- reusing the user-profile component we registered before -->
339339
<li v-repeat="users" v-component="user-profile"></li>
340340
</ul>
341341
```
342342

343343
``` js
344344
var parent2 = new Vue({
345-
el: '#demo-2',
345+
el: '#demo-4',
346346
data: {
347347
users: [
348348
{
@@ -360,10 +360,10 @@ var parent2 = new Vue({
360360

361361
**Result:**
362362

363-
<ul id="demo-2" class="demo"><li v-repeat="users" v-component="user-profile"></li></ul>
363+
<ul id="demo-4" class="demo"><li v-repeat="users" v-component="user-profile"></li></ul>
364364
<script>
365365
var parent2 = new Vue({
366-
el: '#demo-2',
366+
el: '#demo-4',
367367
data: {
368368
users: [
369369
{

0 commit comments

Comments
 (0)