IterableDiffer
用来跟踪一个迭代内的更改的策略。NgForOf
使用它通过对 DOM 进行等效更改来响应此迭代内的更改。
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
}
方法
计算先前状态和新 Compute a difference between the previous state and the new | |||
参数
返回值描述差异的对象。返回值仅在下一次
|