Categories

Jan 6 in Angular
Q: Discuss the lifecycle designed for directive and components in Angular JS

1 Answer

Jan 6
Components and directive of Angular JS follow the following typical lifecycle.

nhOnInit

ngDoCheck

ngOnDestroy

Constructor

ngOnChanges

ngAfterContentInit (only for components)

ngAfterContentChecked (only for components)

ngAfterViewInit (only for components)

ngAfterViewChecked (only for components)
Click here to read more about Angular JS
Click here to read more about Insurance

Related questions

Madanswer
Nov 24, 2019 in Angular
Feb 15 in Angular
Jun 17, 2019 in IONIC
...