You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directive allows you to sort array with drag & drop.
3
+
This directive allows you to sort an array with drag & drop.
4
4
5
5
## Requirements
6
6
@@ -34,7 +34,7 @@ Apply the directive to your form elements:
34
34
*`ng-model` is required, so that the directive knows which model to update.
35
35
*`ui-sortable` element should only contain one `ng-repeat` and not any other elements (above or below).
36
36
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.**
37
+
**In other words: The items of `ng-model` must match the indexes of the generated DOM elements.**
38
38
*`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.
0 commit comments