On this page
DefaultIterableDiffer
class deprecated
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 | 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
}
Constructor
|
| trackByFn | Type: Optional. Default is |
Properties
| Property | Description |
|---|---|
length: number |
Read-only. |
collection: V[] | Iterable<V> | null |
Read-only. |
isDirty: boolean |
Read-only. |
Methods
|
forEachItem()
|
||
|---|---|---|
|
| fn | Type: |
|
forEachOperation()
|
||
|---|---|---|
|
| fn | Type: |
|
forEachPreviousItem()
|
||
|---|---|---|
|
| fn | Type: |
|
forEachAddedItem()
|
||
|---|---|---|
|
| fn | Type: |
|
forEachMovedItem()
|
||
|---|---|---|
|
| fn | Type: |
|
forEachRemovedItem()
|
||
|---|---|---|
|
| fn | Type: |
|
forEachIdentityChange()
|
||
|---|---|---|
|
| fn | Type: |
|
diff()
|
||
|---|---|---|
|
| collection | Type: |
Returns
DefaultIterableDiffer<V> | null
|
onDestroy()
|
|---|
|
|
check()
|
||
|---|---|---|
|
| collection | Type: |
Returns
boolean
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/core/DefaultIterableDiffer