Example ng-repeat
Leaning flow of ng-repeat
HTML
<div ng-app="MyApp" ng-controller="AppCtrl">
<ul>
<li ng-repeat="(name, version) in items">{{name}}: {{version}}</li>
</ul>
</div>
JavaScript
//Define MyApp module
var app = angular.module("MyApp", []);
//Define controller
app.controller("AppCtrl", function ($scope) {
$scope.items = {
'HTML': 5,
'CSS': 3,
'Angular': 2,
'Angular':3
};
});