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

▼ Show 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)
Angular JS
Learn More with Madanswer

Related questions

0 votes
asked Jan 15, 2020 in Angular by rahuljain1
...