Angularjs counter in ng-repeat


Angularjs counter in ng-repeat : You can get index of loop ie. counter of the loop in
AngularJs or ionic framework simply using the $index variable. Here we are going to explain the method how to get loop count in AngularJs or Ionic Framework.


Angularjs counter in ng-repeat

You can get the loop index in angularjs or in ionic framework as below –

Angularjs counter in ng-repeat

<div ng-repeat="data in result" style="" >
		 Counter :: {{$index + 1}}
                 Data :: {{data}}
	   </div>

Here you can also add your own condition on the basis of counter.


Advertisements

Add Comment

📖 Read More