A

Admin • 833K Points
Coach

Q. What does the `providedIn: 'root'` option in `@Injectable()` indicate?

  • (A) The service is available application-wide
  • (B) The service is only available in root component
  • (C) The service is lazy loaded
  • (D) The service is restricted to one module
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

`providedIn: 'root'` ensures a singleton service at app level.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.