From 697690349f8c21893071cd909314002f7af5ef76 Mon Sep 17 00:00:00 2001 From: Dzmitry Shylovich Date: Fri, 23 Dec 2016 00:25:51 +0300 Subject: [PATCH] fix(common): add link to trackBy docs (#13634) --- modules/@angular/common/src/directives/ng_for.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/@angular/common/src/directives/ng_for.ts b/modules/@angular/common/src/directives/ng_for.ts index ea5803ae57..f830b43120 100644 --- a/modules/@angular/common/src/directives/ng_for.ts +++ b/modules/@angular/common/src/directives/ng_for.ts @@ -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; }