Karthik_Mahalingam
попробовать это
<!DOCTYPE html>
<html lang="en-US">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script>
var app = angular.module('myapp', []);
app.controller('myctrl', myctrl);
var data = [{ id: 1, name: 'aa' }, { id: 2, name: 'bb' }, { id: 3, name: 'cc' }, { id: 4, name: 'dd' }]
function myctrl($scope) {
$scope.mydata = data;
}
</script>
</head>
<body>
<div ng-app="myapp" ng-controller="myctrl">
<table>
<tr>
<td>ID</td><td>Name</td>
</tr>
<tr ng-repeat="row in mydata">
<td id="{{$index}}1">{{row.id}}</td>
<td id="{{$index}}2">{{row.name}}</td>
</tr>
</table>
</div>
</body>
</html>