docs: add inpur vars doc (#27377)

PR Close #27377
This commit is contained in:
Judy Bogart
2019-01-16 14:25:28 -08:00
committed by Alex Rickabaugh
parent 6c3b57a968
commit b6819fe9bb
2 changed files with 20 additions and 3 deletions

View File

@ -117,8 +117,12 @@ export interface IterableChangeRecord<V> {
export interface CollectionChangeRecord<V> extends IterableChangeRecord<V> {}
/**
* An optional function passed into {@link NgForOf} that defines how to track
* items in an iterable (e.g. fby index or id)
* An optional function passed into the `NgForOf` directive that defines how to track
* changes for items in an iterable.
* When supplied, Angular tracks changes by the return value of the function.
* @param index The iteration index.
* @param item The item ID.
* @return The value to use for tracking changes.
*
* @publicApi
*/