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)
...