Angular - Services and Dependency Injection
You want to maintain a single instance of a service shared across multiple lazy-loaded Angular modules. Which method ensures this singleton behavior?
@Injectable({ providedIn: 'root' }) -> Option B15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions