Angular: ng-repeat scope - 14410993
http://angularjs.org/
by jonva
HTML
<div ng-controller="MyCtrl">
<div ng-repeat="item in items">
Value of {{ 'foo' + $index }}
</div>
</div>
JavaScript
var myApp = angular.module('myApp', []);
function MyCtrl ($scope) {
$scope.foo0 = 'Value of foo0';
$scope.foo1 = 'Value of foo1';
$scope.foo2 = 'Value of foo2';
$scope.items = ['a', 'b', 'c'];
}