πŸ“Š Angular
Q. What does `ngOnChanges` lifecycle hook do?
  • (A) Detects and responds to changes in input properties
  • (B) Initializes the component
  • (C) Cleans up the component
  • (D) Handles change detection
πŸ’¬ Discuss
βœ… Correct Answer: (A) Detects and responds to changes in input properties

Explanation: `ngOnChanges` is called when input-bound properties change.

Explanation by: Mr. Dubey
`ngOnChanges` is called when input-bound properties change.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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