The _________ directive is used for rendering a set of HTML elements based on an array of items.

  • ng-for
  • ng-if
  • ng-repeat
  • ng-show
The ng-repeat directive in AngularJS is used for rendering a set of HTML elements based on an array of items in the scope. It iterates over the array, creating a copy of the HTML elements for each item. This is powerful for dynamic content generation and displaying lists of data. Mastering ng-repeat is essential for efficiently working with arrays and collections in AngularJS applications.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *