Skip to content

Instantly share code, notes, and snippets.

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