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.
This can be achieved using the following technique:
<div ng-repeat="(key,value) in data"></div>
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.
This can be achieved using the following technique:
<div ng-repeat="(key,value) in data"></div>
Article Topic:Software Development - Angular
Date:August 20, 2014
Want me to help develop your next Ruby-on-Rails project or application?
Contact Me