I am working with angular creating a data table that comes from a JSON API call. I need to use nested ngRepeat, but I see strange results when whole table rows are missing, when a row has a couple of empty rows.
I can reproduce with the following plow. http://plnkr.co/edit/VCzzzPzfgJ95HmC2f83P?p=preview
<script> function MyController($scope){ $scope.test = {"rows":[ ["one","two","three"], ["one","two","three"], ["one","","three"], ["one","",""], ["","two",""], ["","","three"], ["one","two","three"], ["one","two","three"], ]};}; </script> <div ng-app ng-controller="MyController"> <table> <tr ng-repeat="(key,ary) in test.rows"> <td>{{key}}</td> <td ng-repeat="value in ary">{{value}}</td> </tr> </table> </div>
Please note that the array has two empty lines, ngRepeat nested ones do not work.
I've gone crazy? Is there any explanation for this?