Skip to content

DI Bag API / index / ModuleOptions

Interface: ModuleOptions ​

Defined in: module.ts:24

Options for Builder.buildModule.

See ​

https://dany-fedorov.github.io/di-bag/guides/tutorial.html#reuse-named-modules

Properties ​

moduleLabel? ​

ts
readonly moduleLabel?: string;

Defined in: module.ts:30

Name each installation's private bindings <moduleLabel>/<key> in error messages, cycle paths, graphSnapshot(), and observer events. Nested labels compose: outer/inner/key. Exported bindings keep their bare key.

Ordinary services. Checked composition. Explicit ownership.