ngRepeatReorder
ngRepeatReorder copied to clipboard
Current ng-repeat-reorder implementation breaks html5 table layouts
While using ng-repeat-reorder on a table row <tr>
element, my table layout was breaking because a div with class name ng-repeat-reorder-parent was automatically be wrapped around the <tr>
elements. Modern table dom needs nest as follows: <table>
>> <tbody>
>> <tr>
. My solution was to auto-create the div wrapper only if the user has not already assigned this class to an existing element (in my case I would just give <tbody>
that class).