This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

KeyValueChangeRecord

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

Interface Overview

      
      interface KeyValueChangeRecord<K, V> { 
  get key: K
  get currentValue: V | null
  get previousValue: V | null
}
    

Description

Record representing the item change information.

Members

      
      get key: K
    

Current key in the Map.


      
      get currentValue: V | null
    

Current value for the key or null if removed.


      
      get previousValue: V | null
    

Previous value for the key or null if added.