What is ng-repeat directive in AngularJs?

ng-repeat renders or iterates over a collection of items and creates DOM elements. It regularly monitors the source of data to re-render a template in response to a change.

Syntax:

<table class="table table-bordered">       
    <tr ng-repeat="student stuDetails">             
        <td>{{stu.name}} </td>            
        <td> {{stu. grade}} </td>      
    </tr> 
</table>

Top 50+ Angular Interview Questions with Answers

Angular is one of the most current web development frameworks around the world.  In almost every interview, you will have… Read More

4 years ago