Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c9a6dd7

Browse files
committedApr 12, 2015
docs(README): add notice for extra elements support & limitations
1 parent 688c028 commit c9a6dd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ Apply the directive to your form elements:
4343
**Developing Notes:**
4444

4545
* `ng-model` is required, so that the directive knows which model to update.
46-
* `ui-sortable` element should only contain one `ng-repeat` and not any other elements (above or below).
47-
Otherwise the index matching of the generated DOM elements and the `ng-model`'s items will break.
48-
**In other words: The items of `ng-model` must match the indexes of the generated DOM elements.**
46+
* `ui-sortable` element should contain only one `ng-repeat`, but other non-repeater elements above or below may still exist.
47+
Otherwise the index matching of the `ng-model`'s items and the DOM elements generated by the `ng-repeat` will break.
48+
**In other words: The items of `ng-model` must match the indexes of the DOM elements generated by the `ng-repeat`.**
4949
* `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) or a [loader directive](https://github.com/thgreasi/tg-dynamic-directive), to determine how each model item should be rendered. Also take a look at the [Tree with dynamic template](http://codepen.io/thgreasi/pen/uyHFC) example.
5050

5151
### Options

0 commit comments

Comments
 (0)
This repository has been archived.