Skip to content

Commit 520b17c

Browse files
committed
change comment
1 parent 4754608 commit 520b17c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/core/data-table/data-table.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ export class CdkTable<T> implements CollectionViewer {
9494
private _dataDiffer: IterableDiffer<T> = null;
9595

9696
/**
97-
* Tracking function that will be used to check the differences in data changes.
97+
* Tracking function that will be used to check the differences in data changes. Used similarly
98+
* to ngFor trackBy function. Optimize row operations by identifying a row based on its data
99+
* relative to the function to know if a row should be added/removed/moved.
98100
* Accepts a function that takes two parameters, `index` and `item`.
99101
*/
100102
@Input()

0 commit comments

Comments
 (0)