Tutorialsplane

AngularJs ng-repeat


AngularJs ng-repeat directive : AngularJs ng-repeat directive is used to iterate for each element in collection.


Syntax : AngularJs ng-repeat

<div ng-app="">
<div ng-app="" ng-init="myArr=['First Item','Second Item','Third Item', 'Fourth Item','Fifth Item']">
    <p data-ng-repeat="a in myArr" class="amp-wp-inline-f026ce301dc7fea05e8cca56fbee32df">{{a}}</p>
</div>
</div>

Note you can give your ng-app name.

Let us understand with simple example

Example 1




    



<div ng-app="">
<div ng-app="" ng-init="myArr=['First Item','Second Item','Third Item', 'Fourth Item','Fifth Item']">
    <p data-ng-repeat="a in myArr" class="amp-wp-inline-f026ce301dc7fea05e8cca56fbee32df">{{a}}</p>
</div>
</div>


Try it »

Tutorial

Expressions

AngularJs Directives

Controllers

AngularJs Filters

Http Methods

AngularJs Tables

Events

AngularJs Modules