TrackByFunction
interface
A function optionally passed into the NgForOf
directive to customize how NgForOf
uniquely
identifies items in an iterable.
API
Description
interface TrackByFunction<T> { <U extends T>(index: number, item: T & U): any;}
any
@paramindex
number
The index of the item within the iterable.
@paramitem
T & U
The item in the iterable.
@returns
any
Jump to details