I am trying to build a form out of a JSON array. I need to load the keys into the HTML. Here is an example of this array:
{
"Fred": {
"description": "A dude"
},
"Tomas": {
"description": "Another Dude",
"Work": {
"Current": "No Employer",
"Previous": "Enron"
}
}
}
What I was are the values Fred & Thomas. When I run this in Angular HTML:
<div ng-repeat="set in sets">
<p ng-repeat="(key, val) in set">
<span ng-bind="key"></span>: <span ng-bind="val"></span>
</p>
</div>
I get the error "ngRepeat-dupes" although Fred and Tomas are not duplicate values. Any help is greatly appreciated.