We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0d0ded commit 2bbff54Copy full SHA for 2bbff54
1 file changed
packages/core/injector/module.ts
@@ -192,7 +192,9 @@ export class Module {
192
this._injectables.set(injectable.name, instanceWrapper);
193
194
if (host) {
195
- const hostWrapper = this._controllers.get(host && host.name);
+ const token = host && host.name;
196
+ const hostWrapper =
197
+ this._controllers.get(host && host.name) || this._providers.get(token);
198
hostWrapper && hostWrapper.addEnhancerMetadata(instanceWrapper);
199
}
200
0 commit comments