TrackByFunction
interface
npm Package | @angular/core |
---|---|
Module | import { TrackByFunction } from '@angular/core'; |
Source | core/src/change_detection/differs/iterable_differs.ts |
Interface Overview
interface TrackByFunction<T> { (index: number, item: T): any }
Description
An optional function passed into NgForOf
that defines how to track items in an iterable (e.g. fby index or id)
Members
(index: number, item: T): any
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/core/TrackByFunction