Angular 2 *ng-for loop

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

    <h2>Angular 2 *ng-for </h2>

    <div *ng-for="#user of users">
        <div class="pencil" id="{{user.ID}}">
            <a href="~/editUser.html">Update User</a>


Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

www.code-sample.com/. Powered by Blogger.