A

Admin • 832.27K Points
Coach

Q. What is the purpose of the ngOnInit lifecycle hook?

  • (A) To perform component initialization logic after Angular has set inputs
  • (B) To destroy the component
  • (C) To handle change detection
  • (D) To handle user events
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

ngOnInit is called once after the first ngOnChanges.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.