KeyValueDiffer

interface

npm Package @angular/core
Module import { KeyValueDiffer } from '@angular/core';
Source core/src/change_detection/differs/keyvalue_differs.ts

Interface Overview

interface KeyValueDiffer<K, V> { 
  diff(object: Map<K, V>): KeyValueChanges<K, V>
}

Description

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

Members

diff(object: Map<K, V>): KeyValueChanges<K, V>

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

Overloads

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

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

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