I have table and trying to render out table rows using the ng-repeat.
The situation is that I have a invoice which may or may not have multiple invoice details attached. The data is returned in an object and one of those properties is an array. So, I created my table and used ng-repeat using the array as the model. In a way it works because three table rows are render out but the description remains field blank.
Thanks
I looked here
HTML:
<tbody>
<tr style="cursor:pointer" ng-repeat="details in vm.orders.componetGrid ">
<td ng-bind="details.componetGrid.componentDescription"></td>
</tr>
</tbody>
JS
function loadOrder(invoiceNumber) {
return orderService.getOrderById(invoiceNumber)
.then(function (result) {
vm.orders = result.data;
}, function (err) {
console.log("error returned");
});
}

vm.orders.componetGridas yourng-repeatarray, you should usedetails.componentDescriptionin the iteration. I suggest that you correct the misspelledcomponetGrid, tocomponentGrid