Which is NOT a lifecycle hook in Angular?

  • ngOnInit
  • ngRender
  • ngAfterViewInit
  • ngOnDestroy
ngRender is not a standard lifecycle hook in Angular. The other options (ngOnInit, ngAfterViewInit, ngOnDestroy) are all valid Angular lifecycle hooks. These hooks allow developers to tap into various stages of a component's lifecycle to perform actions like initialization, cleanup, and interaction with the DOM. Understanding these hooks is crucial for managing component behavior and interactions in Angular applications.
Add your answer
Loading...

Leave a comment

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