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:
parent
e472f5f688
commit
723a9ff095
|
@ -155,7 +155,7 @@ export class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoCh
|
||||||
* rather than the identity of the object itself.
|
* rather than the identity of the object itself.
|
||||||
*
|
*
|
||||||
* The function receives two inputs,
|
* The function receives two inputs,
|
||||||
* the iteration index and the node object ID.
|
* the iteration index and the associated node data.
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
set ngForTrackBy(fn: TrackByFunction<T>) {
|
set ngForTrackBy(fn: TrackByFunction<T>) {
|
||||||
|
|
Loading…
Reference in New Issue