Google News
logo
AngularJS - Interview Questions
What is ng-repeat directive ?
The ng-repeat directive repeats HTML elements for each item in the specified array collection. In following example, we've iterated over array of countries

<div ng-app="">
   <p><b>List of locale with Countries :</b></p>
   <ol>
      <li ng-repeat = "country in countries">
         {{ ' Locale: ' + country.locale + ', Country: ' + country.name }}
      </li>
   </ol>
</div>
Advertisement