AngularJS ng-repeat -1
In this example, using ng-repeat with object
by Varun Sukheja
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js"></script>
<div ng-controller='MyController' ng-app="myApp">
<div>{{title}}</div>
<table border="1">
<tr ng-repeat="(x, y) in myObj">
<td>{{x}}</td>
<td>{{y}}</td>
</tr>
</table>
</div>
JavaScript
var app = angular.module('myApp', []);
app.controller('MyController', ['$scope', '$interval', function($scope, $interval) {
$scope.title = 'Hello world';
$scope.myObj = {
Name: "Varun",
Gender: "male",
Country: "India",
City: "Pune"
}
}]);