Angular: Empty Fiddle

http://angularjs.org/

HTML

<script src="http://code.angularjs.org/angular-1.0.0rc9.js"></script>
<div ng-controller="MyCtrl">
    <div> If you click "Test", you'll see "Error: $digest already in progress"
    <button ng-click="test()">Test</button>

    <table>
        <thead><td></td><td></td></thead>
        <tbody>
            <tr ng-repeat="row in getRows(tableState)">
                <td>{{row.first}}</td><td>{{row.second}}</td>
            </tr>
        </tbody>
    </table>
</div>

JavaScript

var myApp = angular.module('myApp',[]);
//myApp.factory('myService', function() {});

function MyCtrl($scope) {
    $scope.tableState = {};
    $scope.test=function(){};
    $scope.getRows=function(tableState){
        console.log("hit");
        return [{first:"A1",second:"B1"},{first:"A2",second:"B2"}];
    };
}