Get Keys & Values Together With Ng Repeat

Posted By Weston Ganger

<p>When using ng-repeat you may find yourself wanting get the keys or field names of the json values you are accessing, such as for server side errors.</p>
<p>This can be achieved using the following technique:</p>

<div ng-repeat="(key,value) in data"></div>

Article Topic:Software Development - Javascript

Date:August 20, 2014