πŸ“Š Angular
Q. Which lifecycle hook is called before Angular destroys the component?
  • (A) ngOnDestroy
  • (B) ngAfterViewInit
  • (C) ngDoCheck
  • (D) ngAfterContentInit
πŸ’¬ Discuss
βœ… Correct Answer: (A) ngOnDestroy

Explanation: ngOnDestroy is called just before Angular destroys the component.

Explanation by: Mr. Dubey
ngOnDestroy is called just before Angular destroys the component.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
40
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate