0 votes
in Angular by
Discuss the lifecycle designed for directive and components in Angular JS

1 Answer

0 votes
by
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)

Related questions

0 votes
asked Jan 6, 2020 in Angular by sharadyadav1986
0 votes
asked Jun 6, 2022 in Angular by john ganales
...