How does the ng-repeat directive function in AngularJS?

  • It creates a new instance of the element for each item in a collection.
  • It generates a table for each item in a collection.
  • It repeats a block of HTML code for each item in a collection.
  • It repeats the entire page for each item in a collection.
The ng-repeat directive in AngularJS is used to repeat a block of HTML code for each item in a collection. It is particularly useful for rendering lists and tables dynamically based on the data provided. Understanding how ng-repeat works is essential for efficiently displaying data in AngularJS applications and making the UI responsive to changes in the underlying data.
Add your answer
Loading...

Leave a comment

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