KeyValueChanges
interface
An object describing the changes in the Map
or {[k:string]: string}
since last time KeyValueDiffer#diff()
was invoked.
interface KeyValueChanges<K, V> { forEachItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void forEachPreviousItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void forEachChangedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void forEachAddedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void forEachRemovedItem(fn: (r: KeyValueChangeRecord<K, V>) => void): void }
Methods
forEachItem() | |||
---|---|---|---|
Iterate over all changes. | |||
|
fn | (r: KeyValueChangeRecord |
Returns
void
forEachPreviousItem() | |||
---|---|---|---|
Iterate over changes in the order of original Map showing where the original items have moved. | |||
|
fn | (r: KeyValueChangeRecord |
Returns
void
forEachChangedItem() | |||
---|---|---|---|
Iterate over all keys for which values have changed. | |||
|
fn | (r: KeyValueChangeRecord |
Returns
void
forEachAddedItem() | |||
---|---|---|---|
Iterate over all added items. | |||
|
fn | (r: KeyValueChangeRecord |
Returns
void
forEachRemovedItem() | |||
---|---|---|---|
Iterate over all removed items. | |||
|
fn | (r: KeyValueChangeRecord |
Returns
void
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/core/KeyValueChanges