Q. Which lifecycle hook is called when the component is created?
β
Correct Answer: (A)
ngOnInit
Explanation: ngOnInit is called once the component is initialized and is a good place for setup logic.