Closed wizardnet972 closed 3 years ago
We have documented this under https://ngrx.io/guide/data/entity-metadata#register-metadata
@NgModule({...})
class LazyModule {
constructor(eds: EntityDefinitionService) {
eds.registerMetadataMap(this.lazyMetadataMap);
}
...
}
I starting to use
@ngrx/data
.according to docs I need to import
EntityDataModule.forRoot(entityConfig)
in the app.module file to make it work.but my projects is divide by domain-packages. like:
products
,reports
,companies
.. (each of them, loaded during lazy loading). also each of them hasStoreModule.forFeature(..)
.since
EntityDataModule
has onlyforRoot
, it force me to import the modules not in lazy loading way.Is there any workaround solution here?