A

Admin • 833K Points
Coach

Q. What does the 'providedIn' property in @Injectable decorator specify?

  • (A) Where the service should be provided
  • (B) The template URL
  • (C) The component selector
  • (D) The style URLs
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

'providedIn' configures the service's scope (root or module).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.