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

SimpleChange

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

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

Constructor

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

Parameters

previousValue

Type: any.

currentValue

Type: any.

firstChange

Type: boolean.

Properties

Property Description
previousValue: any Declared in constructor.
currentValue: any Declared in constructor.
firstChange: boolean Declared in constructor.

Methods

Check whether the new value is the first value assigned.

isFirstChange(): boolean
      
      isFirstChange(): boolean
    

Parameters

There are no parameters.

Returns

boolean