2

Need help, is there any way to create feature slices for ngrx state without putting in route block for standalone components. previously we have NgModule approach to achieve the same.

@NgModule({
  declarations: [
  ],
  imports: [
    StoreModule.forFeature('someFeatureName', reducerFunction),
    EffectsModule.forFeature([SomeFeatureEffect])
  ],
  providers: [
  ],
  exports: []
})
export class SomeFeatureModule { }

But now there is no NgModule. can we achieve the same thing by another way, without putting them in route config.

Mantu Nigam
  • 3,690
  • 7
  • 24
  • 41

0 Answers0