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

1 Answer

0 votes
Jan 6, 2020
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

0 votes
Dec 12, 2020 in Angular
...