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>


Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://code-sample.com and http://code-sample.xyz
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like
www.code-sample.com/. Powered by Blogger.
ASK Questions