Last active
June 12, 2018 23:40
-
-
Save jplemieux66/af461e76e21f480456baf5b3944fd4ef to your computer and use it in GitHub Desktop.
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
import { CommonModule } from '@angular/common'; | |
import { HttpClientModule } from '@angular/common/http'; | |
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | |
import { EffectsModule } from '@ngrx/effects'; | |
import { StoreModule } from '@ngrx/store'; | |
import { StoreDevtoolsModule } from '@ngrx/store-devtools'; | |
import { environment } from '../environments/environment'; | |
import { AppComponent } from './core/components/app/app.component'; | |
import { CoreModule } from './core/core.module'; | |
import { reducers } from './reducers'; | |
@NgModule({ | |
declarations: [], | |
imports: [ | |
CommonModule, | |
BrowserModule, | |
BrowserAnimationsModule, | |
HttpClientModule, | |
StoreModule.forRoot(reducers), | |
EffectsModule.forRoot([]), | |
!environment.production | |
? StoreDevtoolsModule.instrument() | |
: [], | |
CoreModule, // Feature Modules need to be imported after StoreModule and StoreDevtoolsModule | |
], | |
providers: [], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment