4 posts about ngFor Directive by 4 contributors.
Know ngFor Directive? Share what you know with developers who are learning it.
In this post, we are going to see a very interesting thing, trackyBy with ngFor directive.
There are couple of local variables with ngFor built-in structural directive provided by Angular, which I are used for getting the index of current element while iteration, for getting last or first element from the collection etc.
ngFor is a directive and used for iteration on collection of data. ngFor having inbuilt variable which help to detect in runtime for Index, First , Last and Odd, Even items.
In this article, you will learn about ngFor directive in Angular 2.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article