A

Admin • 832.27K Points
Coach

Q. What is the significance of the 'providers' array in an @NgModule or @Component?

  • (A) To register services with the dependency injection system
  • (B) To declare components
  • (C) To import other modules
  • (D) To define routing paths
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

The providers array registers injectable services in a module or component scope.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.