my code is working, but I was wondering if there is a better way of injecting empty rows into a table (just for look and feel). It seems a bit redundant, but cannot find the right example how to do it better. my code for now:
<tr class="{{row.class}}" ng-repeat="row in someList | filter:{class:'special'}">
<td>{{row.name}}</td>
</tr>
<!-- empty row -->
<tr>
<td> </td>
</tr>
<tr class="{{row.class}}" ng-repeat="row in someList | filter:{class:'other'}">
<td>{{row.name}}</td>
</tr>
<!-- empty row -->
<tr>
<td> </td>
</tr>
<tr class="{{row.class}}" ng-repeat="row in someList | filter:{class:'final'}">
<td>{{row.name}}</td>
</tr>
groupBy
but requires repeating either atbody
ortable
as wellng-repeat
is a directive ... so what would your suggested directive do that would be different?