AngularJS

AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

AngularJS ng repeat Directive

AngularJS ng-repeat Directive

 

 

The ng-repeat directive is used to repeat a set of HTML a given number of times. The set of HTML will be repeated once per item in a collection. The collection must be an array or an object. If the collection is in the form of objects, then ng-repeat is best for making an HTML table.

 

Syntax:-

 

< element ng-repeat="expression" >< /element >

 

Further Explanation:-

 

Value Description
expression

An expression that specifies how to loop the collection.
Legal Expression examples:

  1. x in records
  2. (key, value) in myObj
  3. y in records track by $id(y)

Code Explanation

All Tutorials related to AngularJS Directives

All Sections related to AngularJS