libs/product-composite/state/src/composite-product-state.module.ts
import { NgModule } from '@angular/core';
import { StoreModule } from '@ngrx/store';
import { daffProductProvideMetaReducers } from '@daffodil/product/state';
import { daffProductCompositeEnsureItemsMetaReducer } from './reducers/ensure-items.meta-reducer';
import { DAFF_PRODUCT_COMPOSITE_REDUCERS } from './reducers/injection-tokens/reducers.token';
import { DAFF_COMPOSITE_PRODUCT_STORE_FEATURE_KEY } from './reducers/public_api';
/**
* A module that provides the default reducers and effects for composite product redux state.
*/
@NgModule({
imports: [
StoreModule.forFeature(DAFF_COMPOSITE_PRODUCT_STORE_FEATURE_KEY, DAFF_PRODUCT_COMPOSITE_REDUCERS),
],
providers: [
...daffProductProvideMetaReducers(daffProductCompositeEnsureItemsMetaReducer),
],
})
export class DaffCompositeProductStateModule { }