Skip to content

Instantly share code, notes, and snippets.

@kingsley-einstein
Created June 27, 2020 19:45
Show Gist options
  • Save kingsley-einstein/9268642066ff02bdf1826314a7f80b0d to your computer and use it in GitHub Desktop.
Save kingsley-einstein/9268642066ff02bdf1826314a7f80b0d to your computer and use it in GitHub Desktop.
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