Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Mar 30, 2020
1 parent 5fe4cbf commit 7cb802c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,19 @@ If you want to access the current index of the iteration, use the following synt
</template>
```

#### Nesting `x-for`s
You can nest `x-for` loops, but you MUST wrap each loop in an element. For example:

```html
<template x-for="item in items">
<div>
<template x-for="subItem in item.subItems">
<div x-text="subItem"></div>
</template>
</div>
</template>
```

---

### `x-transition`
Expand Down

0 comments on commit 7cb802c

Please sign in to comment.