Articles → ANGULAR.JS → ng-repeat in angular.js

ng-repeat in angular.js







<html_element ng-repeat=”object_name in array”>

        {{object_name}}
        
</html_element>



Example




<div ng-app="" ng-init="fruits=['Orange','Banana','Apple']">
      <p ng-repeat="fruit in fruits">
                {{fruit}}
      </p>        
</div>





Output



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, May 27, 2015

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250