R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the lifecycle hook that is called once after component initialization?

  • (A) ngOnChanges
  • (B) ngAfterViewInit
  • (C) ngOnInit
  • (D) ngDoCheck
  • Correct Answer - Option(C)
  • Views: 1
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Ram Sharma
ngOnInit is invoked once after the component’s data-bound properties are initialized.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.