IterableDiffer
interface
A strategy for tracking changes over time to an iterable. Used by NgForOf
to respond to changes in an iterable by effecting equivalent changes in the DOM.
interface IterableDiffer<V> { diff(object: NgIterable<V>): IterableChanges<V> | null }
Class implementations
Methods
diff() | |||
---|---|---|---|
Compute a difference between the previous state and the new | |||
|
object | NgIterable | containing the new value. |
Returns
IterableChanges<V> | null
: an object describing the difference. The return value is only valid until the next diff()
invocation.
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v8.angular.io/api/core/IterableDiffer