AngularJS: declarative templates (simple)
by koper
HTML
<body ng-app>
<table ng-controller="ColorsCtrl">
<tr><th>Color</th></tr>
<tr ng-repeat="color in colors">
<td ng-bind="color" />
</tr>
</table>
</body>
JavaScript
function ColorsCtrl($scope) {
$scope.colors = ['blue', 'red', 'green'];
}