A

Admin • 832.27K Points
Coach

Q. What is the purpose of the `providers` array in @NgModule?

  • (A) To declare components
  • (B) To import modules
  • (C) To register services for dependency injection
  • (D) To configure routes
  • Correct Answer - Option(C)
  • Views: 18
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

Providers array registers services available for injection in the module.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.