MCPcopy Create free account
hub / github.com/angular/components / trackBy

Method trackBy

src/cdk/table/table.ts:495–497  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

493 */
494 @Input()
495 get trackBy(): TrackByFunction<T> {
496 return this._trackByFn;
497 }
498 set trackBy(fn: TrackByFunction<T>) {
499 if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {
500 console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}.`);

Callers 2

constructorMethod · 0.95
_trackByValueFunction · 0.80

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected