From 723a9ff095400df1b9041c65342201964c821de9 Mon Sep 17 00:00:00 2001 From: Andrea Balducci Date: Mon, 17 Aug 2020 11:24:09 +0200 Subject: [PATCH] docs(common): Wrong parameter description on TrackBy (#38495) Track By Function receive the T[index] data, not the node id. TrackByFunction reference description has the same issue. PR Close #38495 --- packages/common/src/directives/ng_for_of.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/directives/ng_for_of.ts b/packages/common/src/directives/ng_for_of.ts index 700b671026..bae7bd543d 100644 --- a/packages/common/src/directives/ng_for_of.ts +++ b/packages/common/src/directives/ng_for_of.ts @@ -155,7 +155,7 @@ export class NgForOf = NgIterable> implements DoCh * rather than the identity of the object itself. * * The function receives two inputs, - * the iteration index and the node object ID. + * the iteration index and the associated node data. */ @Input() set ngForTrackBy(fn: TrackByFunction) {