Deprecated: v4.0.0 - Should not be part of public API.
class DefaultIterableDiffer<V> implements IterableDiffer, IterableChanges {
constructor(trackByFn?: TrackByFunction<V>)
length: number
collection: V[] | Iterable<V> | null
isDirty: boolean
forEachItem(fn: (record: IterableChangeRecord_<V>) => void)
forEachOperation(fn: (item: IterableChangeRecord<V>, previousIndex: number, currentIndex: number) => void)
forEachPreviousItem(fn: (record: IterableChangeRecord_<V>) => void)
forEachAddedItem(fn: (record: IterableChangeRecord_<V>) => void)
forEachMovedItem(fn: (record: IterableChangeRecord_<V>) => void)
forEachRemovedItem(fn: (record: IterableChangeRecord_<V>) => void)
forEachIdentityChange(fn: (record: IterableChangeRecord_<V>) => void)
diff(collection: NgIterable<V>): DefaultIterableDiffer<V> | null
onDestroy()
check(collection: NgIterable<V>): boolean
}
Constructor
constructor(trackByFn?: TrackByFunction<V>) Parameters |
Properties
Property | Description |
length: number |
Read-Only |
collection: V[] | Iterable<V> | null |
Read-Only |
isDirty: boolean |
Read-Only |
Methods
forEachItem() |
forEachItem(fn: (record: IterableChangeRecord_<V>) => void) Parameters fn | (record: IterableChangeRecord_) => void | | |
forEachOperation() |
forEachOperation(fn: (item: IterableChangeRecord<V>, previousIndex: number, currentIndex: number) => void) Parameters |
forEachPreviousItem() |
forEachPreviousItem(fn: (record: IterableChangeRecord_<V>) => void) Parameters fn | (record: IterableChangeRecord_) => void | | |
forEachAddedItem() |
forEachAddedItem(fn: (record: IterableChangeRecord_<V>) => void) Parameters fn | (record: IterableChangeRecord_) => void | | |
forEachMovedItem() |
forEachMovedItem(fn: (record: IterableChangeRecord_<V>) => void) Parameters fn | (record: IterableChangeRecord_) => void | | |
forEachRemovedItem() |
forEachRemovedItem(fn: (record: IterableChangeRecord_<V>) => void) Parameters fn | (record: IterableChangeRecord_) => void | | |
forEachIdentityChange() |
forEachIdentityChange(fn: (record: IterableChangeRecord_<V>) => void) Parameters fn | (record: IterableChangeRecord_) => void | | |
diff() |
diff(collection: NgIterable<V>): DefaultIterableDiffer<V> | null Parameters Returns DefaultIterableDiffer<V> | null |
onDestroy() |
onDestroy() Parameters There are no parameters. |
check() |
check(collection: NgIterable<V>): boolean Parameters Returns boolean |