I'm having trouble displaying my location object. I'm displaying it but it's throwing the whole array and I'm kind of stuck at this part.
My problem is how to remove the [] bracket.
location json
[
{
"_id": "5a61acfdd5df1761dd2eb1ef",
"branch": "Lucena City",
"__v": 0,
"building": [
{
"name": "mhq",
"floors": [
"1st",
"2nd",
"3rd"
]
}
],
"dateCreated": "2018-01-19T08:31:57.121Z"
}
]
HTML
<table class="table table-sm">
<thead>
<tr>
<th>Branch</th>
<th>Building</th>
<th>Floors</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="loc in vm.locations">
<td>{{ loc.branch }}</td>
<td>{{ loc.building[0].name }}</td>
<td>
{{ loc.building[0].floors }}
</td>
</tr>
</tbody>
</table>
