Can a table be populated in angular.js without predefining column names before the 'ng-repeat'? Currently, the table is populated like this..
<table class="table">
<thead>
<tr>
<th>Arup Mnemonic</th>
<th>Organism</th>
<th>Test</th>
<th>Result</th>
<th>Source</th>
<th>Source Value</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="x in data">
<td>{{ x.Arup_Mnemonic }}</td>
<td>{{ x.organism }}</td>
<td>{{ x.test }}</td>
<td>{{ x.result }}</td>
<td>{{ x.source }}</td>
<td>{{ x.source_value }}</td>
</tr>
</tbody>
</table>
Is it possible to eliminate all hard coding and let the scope variable determine the column names and data?
Quick Edit: https://i.sstatic.net/xTfIT.png Here's a quick glance at the data in its current form.. I require the key in the key:value pairs of this object. Is there a way to retrieve those values using pure JavaScript?