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

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

KeyValueDiffer

interface
stable

A differ that tracks changes made to an object over time.

On this page

    arrow_upward_alt Back to the top

    API

        
          interface KeyValueDiffer<K, V> {
    diff(object: Map<K, V>): KeyValueChanges<K, V> | null; diff(object: { [key: string]: V; }): KeyValueChanges<string, V> | null;
    }

    diff

    KeyValueChanges<K, V> | null

    Compute a difference between the previous state and the new object state.

    @paramobjectMap<K, V>

    containing the new value.

    @returnsKeyValueChanges<K, V> | null

    an object describing the difference. The return value is only valid until the next diff() invocation.

    diff

    KeyValueChanges<string, V> | null

    Compute a difference between the previous state and the new object state.

    @paramobject{ [key: string]: V; }

    containing the new value.

    @returnsKeyValueChanges<string, V> | null

    an object describing the difference. The return value is only valid until the next diff() invocation.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page