AngularJS - How can I reference the property name within an ng-Repeat AngularJS - How can I reference the property name within an ng-Repeat angularjs angularjs

AngularJS - How can I reference the property name within an ng-Repeat


Try this:

<ul>    <li ng-repeat="(key,val) in data">{{key}}: {{val}}</li></ul>


The problem with documentation is that it says (key, value) with that space ... it took me some time to figure out that because of that it doesn't work