Angular Talk: 2 - Views
http://angularjs.org/
by boneskull
HTML
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<!-- body tag has ng-app="myApp" -->
<div ng-controller="MyCtrl">
<ul ng-repeat="topping in toppings">
<li>{{topping}}</li>
</ul>
</div>
JavaScript
var myApp = angular.module('myApp',[]);
myApp.controller('MyCtrl', ['$scope', function($scope) {
$scope.toppings = ['ham', 'olives', 'anchovies'];
}]);