The Wayback Machine - https://web.archive.org/web/20241217191158/https://angular.dev/api/core/OnChanges
    • Overview
@angular/core

OnChanges

interface

A lifecycle hook that is called when any data-bound property of a directive changes. Define an ngOnChanges() method to handle the changes.

  
    interface OnChanges {}
  
  

ngOnChanges

void

A callback method that is invoked immediately after the default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.

@paramchangesSimpleChanges

The changed properties.

@returnsvoid
Jump to details
HTTPS · web.archive.org
← Home