What Is Trackby in Angular?

anilsingh

Anil Singh

Posted on November 14, 2019

What Is Trackby in Angular?

The “track by” expression to specify unique keys.

The trackBy function takes the index and the current item as arguments and needs to return the unique identifier for this item.

As an Example,
https://www.code-sample.com/2019/11/trackby-in-angular-ngfor-ng-repeat.html

💖 💪 🙅 🚩
anilsingh
Anil Singh

Posted on November 14, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related