πŸ“Š Angular
Q. Which Angular lifecycle hook is called when a component is destroyed?
  • (A) ngOnDestroy
  • (B) ngOnInit
  • (C) ngAfterViewInit
  • (D) ngDoCheck
πŸ’¬ 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

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