Angular: Empty Fiddle
http://angularjs.org/
HTML
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<script src="http://angular-ui.github.com/ng-grid/lib/ng-grid.debug.js"></script>
<link rel="stylesheet" href="http://angular-ui.github.com/ng-grid/css/ng-grid.css">
<div ng-controller="MyCtrl">
number of data rows: {{rows.length}}<br>
number of DOM rows: {{rowCount}}<br>
<span class="whoa">try scrolling down and watch the above number change</span>
<div class="grid" ng-grid="gridOptions"></div>
</div>
CSS
.ngGrid {height:200px}
.whoa {color:red}
JavaScript
var myApp = angular.module('myApp',["ngGrid"]);
function MyCtrl($scope, $timeout) {
$scope.name = 'Superhero';
$scope.rows=[
{"name": "item 1"},
{"name": "item 2"},
{"name": "item 3"},
{"name": "item 4"},
{"name": "item 5"},
{"name": "item 6"},
{"name": "item 7"},
{"name": "item 8"},
{"name": "item 9"},
{"name": "item 10"},
{"name": "item 11"},
{"name": "item 12"},
{"name": "item 13"},
{"name": "item 14"},
{"name": "item 15"},
{"name": "item 16"},
{"name": "item 17"},
{"name": "item 18"},
{"name": "item 19"},
{"name": "item 20"},
{"name": "item 21"},
{"name": "item 22"},
{"name": "item 23"},
{"name": "item 24"},
{"name": "item 25"}
];
$scope.rowCount=0;
var countRows = function(){
$scope.rowCount = angular.element(".ngRow").length
$timeout(countRows, 500);
};
countRows();
$scope.gridOptions = {
data: 'rows',
displayFooter: false
};
}