IterableChanges
interface
An object describing the changes in the Iterable
collection since last time IterableDiffer#diff()
was invoked.
interface IterableChanges<V> { forEachItem(fn: (record: IterableChangeRecord<V>) => void): void forEachOperation(fn: (record: IterableChangeRecord<V>, previousIndex: number, currentIndex: number) => void): void forEachPreviousItem(fn: (record: IterableChangeRecord<V>) => void): void forEachAddedItem(fn: (record: IterableChangeRecord<V>) => void): void forEachMovedItem(fn: (record: IterableChangeRecord<V>) => void): void forEachRemovedItem(fn: (record: IterableChangeRecord<V>) => void): void forEachIdentityChange(fn: (record: IterableChangeRecord<V>) => void): void }
Class implementations
Methods
forEachItem() | |||
---|---|---|---|
Iterate over all changes. | |||
|
fn | (record: IterableChangeRecord |
Returns
void
forEachOperation() | |||
---|---|---|---|
Iterate over a set of operations which when applied to the original | |||
|
fn | (record: IterableChangeRecord |
Returns
void
NOTE: These are not necessarily the actual operations which were applied to the original Iterable
, rather these are a set of computed operations which may not be the same as the ones applied.
forEachPreviousItem() | |||
---|---|---|---|
Iterate over changes in the order of original | |||
|
fn | (record: IterableChangeRecord |
Returns
void
forEachAddedItem() | |||
---|---|---|---|
Iterate over all added items. | |||
|
fn | (record: IterableChangeRecord |
Returns
void
forEachMovedItem() | |||
---|---|---|---|
Iterate over all moved items. | |||
|
fn | (record: IterableChangeRecord |
Returns
void
forEachRemovedItem() | |||
---|---|---|---|
Iterate over all removed items. | |||
|
fn | (record: IterableChangeRecord |
Returns
void
forEachIdentityChange() | |||
---|---|---|---|
Iterate over all items which had their identity (as computed by the | |||
|
fn | (record: IterableChangeRecord |
Returns
void
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/core/IterableChanges