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

SimpleChange

npm Package @angular/core
Module import { SimpleChange } from '@angular/core';
Source core/src/change_detection/change_detection_util.ts

Overview

      
      class SimpleChange {
  constructor(previousValue: any, currentValue: any, firstChange: boolean)
  previousValue: any
  currentValue: any
  firstChange: boolean
  isFirstChange(): boolean
}
    

Description

Represents a basic change from a previous to a new value.

Constructor

      
      constructor(previousValue: any, currentValue: any, firstChange: boolean)
    

Members

      
      previousValue: any
    

      
      currentValue: any
    

      
      firstChange: boolean
    

      
      isFirstChange(): boolean
    

Check whether the new value is the first value assigned.