Div controlled by the controller myList
<div ng-controller="myList"> <ul> <li ng-repeat="food in foods">{{food}}</li> </ul> </div>
JavaScript
var myList = function($scope){ $scope.foods = ['Pizza','Pasta','Burger','Icecream','Pepsi']; };