ng-repeat directive repeats html elements for each item in a collection. In following example, we’ve iterated over array of countries.
<div ng-app = “myApp”>
…
<p>List of Countries with locale:</p><ol>
<li ng-repeat = “country in countries“>
{{ ‘Country: ‘ + country.name + ‘, Locale: ‘ + country.locale }}
</li>
</ol>
…
<p>List of Countries with locale:</p><ol>
<li ng-repeat = “country in countries“>
{{ ‘Country: ‘ + country.name + ‘, Locale: ‘ + country.locale }}
</li>
</ol>
</div>