Created
June 27, 2020 19:45
-
-
Save kingsley-einstein/9268642066ff02bdf1826314a7f80b0d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import { BrowserModule } from '@angular/platform-browser'; | |
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | |
import { NgModule } from '@angular/core'; | |
import { StoreModule } from '@ngrx/store'; | |
import { StoreDevtoolsModule } from '@ngrx/store-devtools'; | |
import { EffectsModule } from '@ngrx/effects'; | |
import { AppComponent } from './app.component'; | |
import { MaterialModule, FormModule, RoutingModule } from '../modules'; | |
import { AddUserComponent, ListUsersComponent, AddPostComponent, ListPostsComponent, ViewUserComponent, ViewPostComponent } from '../components'; | |
import { appReducers } from '../management/reducers'; | |
import { UserEffects, PostEffects } from '../management/effects'; | |
import { UserService, PostService } from '../services'; | |
import { SnackBarUtil } from '../utils'; | |
import { environment } from '../environments/environment'; | |
@NgModule({ | |
declarations: [ | |
AppComponent, | |
AddUserComponent, | |
ListUsersComponent, | |
AddPostComponent, | |
ListPostsComponent, | |
ViewUserComponent, | |
ViewPostComponent | |
], | |
imports: [ | |
BrowserModule, | |
BrowserAnimationsModule, | |
MaterialModule, | |
FormModule, | |
RoutingModule, | |
StoreModule.forRoot(appReducers), | |
EffectsModule.forRoot([UserEffects, PostEffects]), | |
!environment.production ? StoreDevtoolsModule.instrument() : [] | |
], | |
providers: [ | |
UserService, | |
PostService, | |
SnackBarUtil | |
], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment