[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/KeyValueChanges [Back]  [Original]

KeyValueChanges Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

KeyValueChanges

interface
stable

An object describing the changes in the Map or {[k:string]: string} since last time KeyValueDiffer#diff() was invoked.

On this page

    arrow_upward_alt Back to the top

    API

        
          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;}
        
        

    forEachItem

    void

    Iterate over all changes. KeyValueChangeRecord will contain information about changes to each item.

    @paramfn(r: KeyValueChangeRecord<K, V>) => void
    @returnsvoid

    forEachPreviousItem

    void

    Iterate over changes in the order of original Map showing where the original items have moved.

    @paramfn(r: KeyValueChangeRecord<K, V>) => void
    @returnsvoid

    forEachChangedItem

    void

    Iterate over all keys for which values have changed.

    @paramfn(r: KeyValueChangeRecord<K, V>) => void
    @returnsvoid

    forEachAddedItem

    void

    Iterate over all added items.

    @paramfn(r: KeyValueChangeRecord<K, V>) => void
    @returnsvoid

    forEachRemovedItem

    void

    Iterate over all removed items.

    @paramfn(r: KeyValueChangeRecord<K, V>) => void
    @returnsvoid
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page