Skip to content

Instantly share code, notes, and snippets.

@jplemieux66
Last active June 12, 2018 23:40
Show Gist options
  • Save jplemieux66/af461e76e21f480456baf5b3944fd4ef to your computer and use it in GitHub Desktop.
Save jplemieux66/af461e76e21f480456baf5b3944fd4ef to your computer and use it in GitHub Desktop.
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