A

Admin • 833K Points
Coach

Q. Which Angular decorator is used to inject services in a constructor?

  • (A) @Injectable
  • (B) @Inject
  • (C) @Service
  • (D) @Provider
  • Correct Answer - Option(B)
  • Views: 27
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

@Inject is used to specify a custom provider token when injecting a service.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.