ng-repeat directive acts like a for in loop in java script . ng-repeat used usually for retrieving data present in an array.

ng-repeat syntax:

ng-repeat="variable-name in collection-name"
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
</head>

<body>

<div ng-app="" ng-init="cities=['Bangalore','NewYork','London','Beijing']">
    Best cities in the world:
<p ng-repeat="city in cities" >
      {{n}}{{ city }}
</p>
</ul>
</div>

</body>
</html>

ng-repeat example based on object array:

<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
<style>
table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}
th, td {
    padding: 5px;
    text-align: left;
}
</style>
</head>
<body>

<div ng-app="" ng-init="statesInfo=[{state:'KA',city:'bangalore'}, 
{state:'Andhra',city:'Vijayavada'},{state:'tamilnadu',city:'chennai'}]">
<b>Indian States and Capitals:</b>
<table>
<tr><th>state</th><th>capital</th></tr>
<tr  ng-repeat="item in statesInfo">
<td>{{item.state}}</td><td>{{item.city}}</td>
</tr>
</table>
</div>

</body>
</html>