reference the property name within ng-Repeat
http://angularjs.org/
by ranadheerrannu
HTML
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-controller="MyCtrl">
<ul>
<li ng-repeat="(key,val) in employee">{{key}}: {{val}}</li>
</ul>
</div>
CSS
/* For better explanation visit https://www.coding-issues.com */
JavaScript
var myApp = angular.module('myApp',[]);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
function MyCtrl($scope) {
$scope.employee = {name:"John",
age: 24,
designation: "Developer"};
}
//For better explanation visit https://www.coding-issues.com