• Overview
@angular/core

KeyValueDiffer

interface
stable

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

API

    
      interface KeyValueDiffer<K, V> {
}

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