fix(common): add link to trackBy docs (#13634)

This commit is contained in:
Dzmitry Shylovich
2016-12-23 00:25:51 +03:00
committed by Igor Minar
parent 5f47583c94
commit f7234378b6

View File

@ -92,7 +92,8 @@ export class NgFor implements DoCheck, OnChanges {
@Input()
set ngForTrackBy(fn: TrackByFn) {
if (typeof fn !== 'function') {
throw new Error(`trackBy must be a function, but received ${JSON.stringify(fn)}`);
throw new Error(`trackBy must be a function, but received ${JSON.stringify(fn)}.
See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information.`);
}
this._trackByFn = fn;
}