I have a json and I want to iterate and get the json keys: Testing01, Testing02 and Testing03 on my ng-repeat for my given json. How can I get it using ng-repeat ? Please let me know and thanks in advance.
Fiddle is available.
I have a json and I want to iterate and get the json keys: Testing01, Testing02 and Testing03 on my ng-repeat for my given json. How can I get it using ng-repeat ? Please let me know and thanks in advance.
Fiddle is available.
You could do it like this:
<div ng-controller="MyCtrl">
<table>
<tr ng-repeat="(key,value) in data.testingjson">
<td> {{key}}: {{value}} </td>
</tr>
</table>
</div>
Updated Fiddle: https://jsfiddle.net/0gucxcq2/6/
Just do this
<div ng-controller="MyCtrl">
<table>
<tr ng-repeat="(key,value) in data.testingjson">
<td> {{key}} </td>
</tr>
</table>
</div>