How to loop elements in Angular Js

 Posted by Chvrsri on 3/18/2016 | Category: AngularJS 1x Interview questions | Views: 1787 | Points: 40
Answer:

Below is the procedure to loop through data in Angular JS

<div data-ng-app="" data-ng-init="names=['DotnetFunda','TechFunda','SQLFunda','ITFunda']">

<b>Loop Example:</b>
<br />
<ul>
<li data-ng-repeat="x in names">
{{ x }}
</li>
</ul>
</div>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response