πŸ“Š 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

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