Q. What does the 'ngOnInit' lifecycle hook do?
β
Correct Answer: (A)
Initializes the component after constructor
Explanation: ngOnInit runs after Angular sets the component's input properties.