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

Method trackBy

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

Source from the content-addressed store, hash-verified

499 */
500 @Input()
501 get trackBy(): TrackByFunction<T> {
502 return this._trackByFn;
503 }
504 set trackBy(fn: TrackByFunction<T>) {
505 if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {
506 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