DEV Community

Anil Singh
Anil Singh

Posted on

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

Top comments (0)