Explore Library
Quiz

useExisting vs useClass in Custom Providers

Understand how useExisting creates an alias to an existing provider rather than a new instance.

You register `LoggerService` normally, then add a second provider `{ provide: 'AliasedLogger', useExisting: LoggerService }`. What is the runtime relationship between what `LoggerService` and `'AliasedLogger'` resolve to?