Q. What does `ngOnInit` lifecycle hook do?
β
Correct Answer: (A)
Initializes the component after Angular sets the data-bound properties
Explanation: `ngOnInit` is called once, after the first `ngOnChanges`, and is used to initialize the component.