Hello everyone, I am going to share the code
sample for *ng-for, ng-repeat in Angular 2 or we can say that how to use *ng-for, ng-repeat in Angular 2.
In Angular 2, ng-repeat is equals to *ng-for="#user
of users".
<div *ng-for="#user of
users">
</div>
Example
code as given below
<div>
<div *ng-for="#user of
users">
<div>{{user.ID}}</div>
<div>{{user.Name}}</div>
<div>{{user.Date}}</div>
<div class="pencil" id="{{user.ID}}">
<a href="~/editUser.html">Update User</a>
</div>
</div>
</div>