linkDefaultIterableDiffer
npm Package | @angular/core |
---|---|
Module | import { DefaultIterableDiffer } from '@angular/core'; |
Source | core/src/change_detection/differs/default_iterable_differ.ts |
linkDeprecation Notes
v4.0.0 - Should not be part of public API.
linkOverview
class DefaultIterableDiffer<V> implements IterableDiffer , IterableChanges {
constructor(trackByFn?: TrackByFunction<V>)
get length: number
get collection: V[] | Iterable<V> | null
forEachItem(fn: (record: IterableChangeRecord_<V>) => void)
forEachOperation(fn: (item: IterableChangeRecord<V>, previousIndex: number | null, currentIndex: number | null) => 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
get isDirty: boolean
}
linkConstructor
constructor(trackByFn?: TrackByFunction<V>)
linkMembers
forEachOperation(fn: (item: IterableChangeRecord<V>, previousIndex: number | null, currentIndex: number | null) => void)
diff(collection: NgIterable<V>): DefaultIterableDiffer<V> | null
check(collection: NgIterable<V>): boolean