DEV Community

Discussion on: Improved Dependency Injection with the new providedIn scopes 'any' and 'platform'

Collapse
 
carlosra85 profile image
Carlos Rodríguez Aguado

If I do not specify any value, using @Injectable(), which one is the default?? I have doubts after migrating to angular9 and the removal of providers in modules

Collapse
 
stagefright5 profile image
stagefright5 • Edited

IIRC, you will get an error saying "no provider for that service" if you try to use the service anywhere in your application