A

Admin • 833K Points
Coach

Q. Which of these Angular lifecycle hooks runs only once after the first ngOnChanges?

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

Explanation by: Admin

ngOnInit is called once after initial input property setup.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.