Angular - using forRoot({}) config in loadChildren() to configure a lazy-loaded module
问题 I want to have a loaded module configurable. In theory, I want a module that is its own bigger application do receive some configuration. To show / load certain elements depending on the config the main application sends down. I used that with other modules but those where not lazyLoaded. I tried and searched around and have not seen the usage of something like: children: [ { path: 'application-module', loadChildren: () => import('@application-module').then(m => m.ApplicationModule.forRoot({