Which Angular lifecycle hook is invoked when the value of an input property changes?

  • ngAfterViewInit
  • ngDoCheck
  • ngOnChanges
  • ngOnInit
The Angular lifecycle hook ngOnChanges is invoked when the value of an input property changes. Developers can use this hook to respond to input property changes.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *