Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

SimpleChange

Represents a basic change from a previous to a new value for a single property on a directive instance. Passed as a value in a SimpleChanges object to the ngOnChanges hook.

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

See also

Constructor

      
      constructor(previousValue: any, currentValue: any, firstChange: boolean)
    
Parameters
previousValue any
currentValue any
firstChange 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
    
Parameters

There are no parameters.

Returns

boolean