Skip to content

Instantly share code, notes, and snippets.

@daveharmswebdev
Created November 14, 2017 12:40
Show Gist options
  • Save daveharmswebdev/f981918a8485e4f5fe7b1f08fd1a988e to your computer and use it in GitHub Desktop.
Save daveharmswebdev/f981918a8485e4f5fe7b1f08fd1a988e to your computer and use it in GitHub Desktop.
Initial import of StoreModule & Devtools
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { TodoService } from './todo.service';
// ngrx
import { StoreModule } from '@ngrx/store';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
HttpClientModule,
FormsModule,
StoreModule.forRoot({}),
StoreDevtoolsModule.instrument({ maxAge: 25 })
],
providers: [TodoService],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment