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
This commit is contained in:
Andrea Balducci 2020-08-17 11:24:09 +02:00 committed by Andrew Scott
parent e472f5f688
commit 723a9ff095
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ export class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> 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<T>) {