@code-net/nestjs-configurable-dynamic-module
v1.0.1
Published
## Usage
Readme
NestJS Configurable Dynamic Module
Usage
Mark your module as configurable dynamic module and declare static method register.
@ConfigurableDynamicModule()
class MyModule {
static register(options: MyModuleOptions): DynamicModule => ({
// return regular NestJS dynamic module here
})
}Then you can register your module once in the application with:
imports: [MyModule.register(options)]And reference it multiple times without the configuration using:
imports: [MyModule]License
This project is licensed under the MIT License.
