Angular: Empty Fiddle

http://angularjs.org/

by joshuaohana

HTML

<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-controller="MyCtrl">
  <table>
      <tr ng-class='{header:$first}' ng-repeat="row in myData">
        <td ng-repeat="column in row">
          {{column}}
        </td>
      </tr>
    </table>
</div>

CSS

.header {
    background-color: red;
}

JavaScript

var myApp = angular.module('myApp',[]);

//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});

function MyCtrl($scope) {
    $scope.myData = [
            [1,2,3,4],
            ['a','b','c','d'],
            [5,6,7,8]
            ];
}