πŸ“Š Angular
Q. Which lifecycle hook is called when Angular sets or resets data-bound input properties?
  • (A) ngOnInit
  • (B) ngOnChanges
  • (C) ngAfterViewInit
  • (D) ngOnDestroy
πŸ’¬ Discuss
βœ… Correct Answer: (B) ngOnChanges

Explanation: ngOnChanges runs whenever an input property changes.

Explanation by: Mr. Dubey
ngOnChanges runs whenever an input property changes.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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