Created
June 13, 2022 01:31
-
-
Save thecodinganalyst/3aae9cd9ac50bfd165fcd60b34baf340 to your computer and use it in GitHub Desktop.
NgRx module with Store and Effects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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