Files
main.tsmain
What you'll learn
- Write a static register() that returns a DynamicModule with the importer's options as a provider
- Import a dynamic module with options, and tell register(), forRoot() and forFeature() apart
- Read a module built with ConfigurableModuleBuilder, and use setExtras options such as isGlobal
Press Run tests to start the app. Its log appears here.Graded endpoints
The options passed to register() are a provider under CATS_CONFIG, injected by the controller
The controller came with the dynamic module
Second of two
Both cats, from the controller the dynamic module registered
Two, because that is what the importer asked for
The dynamic module exports CATS_STORE, so the root module counts the same repository
LoggingModule was registered with the prefix and as global: CatsService found the logger without importing anything