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

Commit 9390969

Browse files
committed
Merge pull request #123 from thgreasi/master
Emphasize ng-model and ng-repeat's model, index matching requirement.
2 parents 85687a6 + 29eeb50 commit 9390969

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Apply the directive to your form elements:
3434
* `ng-model` is required, so that the directive knows which model to update.
3535
* `ui-sortable` element should only contain one `ng-repeat` and not any other elements (above or below).
3636
Otherwise the index matching of the generated DOM elements and the `ng-model`'s items will break.
37+
**In other words: The items of `ng-model` must match the indexes of the genretated DOM elements.**
3738
* `ui-sortable` lists containing many 'types' of items can be implemented by using [dynamic template loading with ng-include](http://stackoverflow.com/questions/14607879/angularjs-load-dynamic-template-html-within-directive/14621927#14621927), to determine how each model item should be rendered.
3839

3940
### Options

0 commit comments

Comments
 (0)