W3cubDocs

/Angular 2

TrackByFn

Stable Interface

Interface Overview

interface TrackByFn {
}

Interface Description

An optional function passed into NgFor that defines how to track items in an iterable (e.g. by index or id)

exported from @angular/core/index, defined in @angular/core/src/change_detection/differs/iterable_differs.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/core/index/TrackByFn-interface.html