NestJS · Middle · Question 14 of 75
What is a dynamic module?
- ✓Correct answer: A module with a static method like
forRoot(options)that returns a configured module definition at runtime - 2A module that changes its routes on every request
- 3A module loaded from the network
Explanation
ConfigModule.forRoot(), TypeOrmModule.forFeature() and JwtModule.register() are dynamic modules. ConfigurableModuleBuilder helps write your own.