Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 0d2a550

Browse files
pheonixblade9SomeKittens
authored andcommitted
docs: ng-repeat readme addition
Add explanation of how to use ui-layout with a repeat correctly
1 parent fb5b415 commit 0d2a550

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ or
6161
<ui-layout options="{ flow : 'row' }"></ui-layout>
6262
```
6363

64+
If using a `layout-container` with `ng-repeat`, make sure to include a `track by` clause to the repeat, typically with $index:
65+
66+
```xml
67+
<div ui-layout="{flow : 'column'}" class="maincontainer" >
68+
<div ui-layout-container ng-repeat="item in items track by $index"></div>
69+
</div>
70+
```
6471

6572
## Options
6673

0 commit comments

Comments
 (0)