NestJS: Dependency Inyection and Provider Registration
问题 Can anyone help me to understand DI Nest Fundamentals, my question: "Is it possible to have a service class without @Injectable annotattion , and also this class does not belong to any module ?" I saw on internet an example like below: This class exists in a common folder: export class NotificationService { constructor( @Inject(Logger) private readonly logger: LoggerService, private readonly appConfigService: AppConfigService, @Inject(HttpService) private readonly httpService: HttpService ) {