linkTrackByFunction
| npm Package | @angular/core |
|---|---|
| Module | import { TrackByFunction } from '@angular/core'; |
| Source | core/src/change_detection/differs/iterable_differs.ts |
linkInterface Overview
interface TrackByFunction<T> {
(index: number, item: T): any
}
linkDescription
An optional function passed into NgForOf that defines how to track
items in an iterable (e.g. fby index or id)