We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37a8a2c commit 33948f7Copy full SHA for 33948f7
packages/core/injector/opaque-key-factory/by-reference-module-opaque-key-factory.ts
@@ -44,9 +44,10 @@ export class ByReferenceModuleOpaqueKeyFactory
44
if (this.keyGenerationStrategy === 'random') {
45
moduleId = this.generateRandomString();
46
} else {
47
+ const delimiter = ':';
48
moduleId = dynamicMetadata
- ? `${this.generateRandomString()}:${this.hashString(moduleCls.name + JSON.stringify(dynamicMetadata))}`
49
- : `${this.generateRandomString()}:${this.hashString(moduleCls.toString())}`;
+ ? `${this.generateRandomString()}${delimiter}${this.hashString(moduleCls.name + JSON.stringify(dynamicMetadata))}`
50
+ : `${this.generateRandomString()}${delimiter}${this.hashString(moduleCls.toString())}`;
51
}
52
53
originalRef[K_MODULE_ID] = moduleId;
0 commit comments