W3cubDocs

/Angular 7

KeyValueDiffer

interface

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

interface KeyValueDiffer<K, V> {
  diff(object: any): KeyValueChanges<K, V> | null
}

Methods

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

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

Parameters
object object

containing the new value.

Returns

KeyValueChanges<string, V> | null: an object describing the difference. The return value is only valid until the next diff() invocation.

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/core/KeyValueDiffer