I know there are a lot of questions out there regarding this subject. I am just super confused. I did my research and tried a bunch of solutions from different people. I'm just not getting my head wrapped around this. Please help out.
I have an incoming array which looks like this.
As you can see object with index 4 has documents array 2.
I basically would like to preset this ( the documents) in my table (under the documents column) one next to the other separated by comma (not necessarily comma though as long as it has a clear view to the user).
The table looks like this.
<div class="table-responsive">
<table class="table table-bordered" >
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Documents</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr dir-paginate="item in allItems | orderBy:sortKey:reverse | filter: search.query | itemsPerPage : itemPerPage" total-items="totalItems" current-page="currentPage">
<td>{{item.name}}</td>
<td>{{item.description}}</td>
<td>{{item.documents.name}}</td> // this obviously will not work
<td style="width:150px">
<button class="btn btn-info btn-sm" ng-click="showEditDialog($event, item)">
<i class="glyphicon glyphicon-edit"></i>
</button>
<button class="btn btn-danger btn-sm" ng-click="deleteResource(item, $index)">
<i class="glyphicon glyphicon-trash"></i>
</button>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="20" class="text-center">
<div ng-hide="allItems.length">
There are no data available
</div>
<dir-pagination-controls on-page-change="pageChanged(newPageNumber)" boundary-links="true"></dir-pagination-controls>
<md-progress-circular md-mode="indeterminate" ng-if="AjaxInProgress"></md-progress-circular>
</td>
</tr>
</tfoot>
</table>
</div>
I have tried solutions from
Accessing the nested Arrays using ng-repeat in angularjs
and many other solutions online but still can't get this to work proberly.