πŸ“Š Angular
Q. Which lifecycle hook is called after Angular sets the component's input properties?
  • (A) ngOnChanges
  • (B) ngOnInit
  • (C) ngAfterViewInit
  • (D) ngDoCheck
πŸ’¬ Discuss
βœ… Correct Answer: (A) ngOnChanges

Explanation: ngOnChanges is triggered when input properties change.

Explanation by: Mr. Dubey
ngOnChanges is triggered when input properties change.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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