Angular - Services and Dependency Injection
Which Angular feature guarantees that a service instance is shared application-wide without manual provider configuration?
providedIn: 'root' option in the @Injectable decorator tells Angular to provide the service in the root injector.@Injectable({ providedIn: 'root' }) -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions