()
| 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)}.`); |
no test coverage detected