Q. What is the purpose of the ngOnInit lifecycle hook?
β
Correct Answer: (A)
To perform component initialization logic after Angular has set inputs
Explanation: ngOnInit is called once after the first ngOnChanges.