Skip to content

Instantly share code, notes, and snippets.

@thecodinganalyst
Created June 13, 2022 01:31
Show Gist options
  • Save thecodinganalyst/3aae9cd9ac50bfd165fcd60b34baf340 to your computer and use it in GitHub Desktop.
Save thecodinganalyst/3aae9cd9ac50bfd165fcd60b34baf340 to your computer and use it in GitHub Desktop.
NgRx module with Store and Effects
@NgModule({
declarations: [
AppComponent,
ItemComponent
],
imports: [
BrowserModule,
HttpClientModule,
HttpClientInMemoryWebApiModule.forRoot(InMemoryDataService, {dataEncapsulation: false}),
ReactiveFormsModule,
StoreModule.forRoot({bookStore: booksReducer}),
EffectsModule.forRoot([BooksEffects])
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment