TrackByFunction
An optional function passed into the NgForOf
directive that defines how to track changes for items in an iterable. The function takes the iteration index and item ID. When supplied, Angular tracks changes by the return value of the function.
interface TrackByFunction<T> {
(index: number, item: T): any
}