Angular - Services and Dependency Injection
Which of the following is the correct syntax to provide a service only in a specific Angular module?
providedIn: 'module'. Instead, you add the service to the module's providers array.providers array scopes to component, @Injectable({ providedIn: 'module' }) is invalid syntax.providers array -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions