Skip to content Skip to sidebar Skip to footer

What Is The Preferred Pattern For Creating A Repeater In Ng2?

What is the preferred pattern for creating a repeater in ng2? I was thinking that I might do this with NgFor but NgFor is deprecated according to angular.io: https://angular.io/api

Solution 1:

In most cases, you want to use the short-cut version: *ngFor. Behind the scenes, this is implemented as ngForOf. If you stick to the short-cut version, you don't have to worry about the "behind the scenes" changes.

See this link for more information: What is Angular [ngForOf] usage

Post a Comment for "What Is The Preferred Pattern For Creating A Repeater In Ng2?"