I need help finding a way to use the property name as the table header in my code example below:
<table>
<th ng-repeat="auditorium in auditoriums">
{{ auditorium.NAME }}
</th>
<tbody>
<tr ng-repeat="auditorium in auditoriums" ng-if="$index > 0">
<td>{{ auditorium.NAME }}</td>
<td>{{ auditorium.ADDRESSBUILDINGNAME }}</td>
<td>{{ auditorium.ADDRESSBLOCKHOUSENUMBER }}</td>
<td>{{ auditorium.ADDRESSPOSTALCODE }}</td>
<td>{{ auditorium.ADDRESSSTREETNAME}}</td>
</tr>
</tbody>
</table>
For instance, if I have JSON data like { "NAME : "ABC", "ADDRESSPOSTALCODE" : "CBA" }, how can I display 'name' and 'addresspostalcode' as my table headers? Any assistance is appreciated! (The data is an array of objects)