R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of 'providedIn' inside @Injectable?

  • (A) To define the pipe name
  • (B) To specify where the service is registered
  • (C) To set the selector name
  • (D) To enable two-way binding
  • Correct Answer - Option(B)
  • Views: 21
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Ram Sharma
`providedIn` tells Angular where the service should be provided (e.g., 'root').

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.