What is “ng-repeat” directive in AngularJS Applications ?

ng-repeat directive repeats html elements for each item in a collection. In following example, we’ve iterated over array of countries.

Sample using “ng-repeat” directive
<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>

</div>