ConfigurableModuleBuilderOptions


interface ConfigurableModuleBuilderOptions {
  optionsInjectionToken?: string | symbol
  moduleName?: string
  alwaysTransient?: boolean
}

Properties

Property Description
optionsInjectionToken?: string | symbol

Specifies what injection token should be used for the module options provider. By default, an auto-generated UUID will be used.

moduleName?: string

By default, an UUID will be used as a module options provider token. Explicitly specifying the "moduleName" will instruct the "ConfigurableModuleBuilder" to use a more descriptive provider token.

For example, moduleName: "Cache" will auto-generate the provider token: "CACHE_MODULE_OPTIONS".

alwaysTransient?: boolean

Indicates whether module should always be "transient" - meaning, every time you call the static method to construct a dynamic module, regardless of what arguments you pass in, a new "unique" module will be created.