A

Admin • 830.13K Points
Coach

Q. What is the default scope of a service provided via 'providedIn: root'?

  • (A) Module-level scope
  • (B) Singleton application-wide scope
  • (C) Component-level scope
  • (D) Lazy-loaded module scope
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Services with providedIn: 'root' are singletons throughout the app.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.