Skip to content

Instantly share code, notes, and snippets.

@takuya-nakayasu
Created March 21, 2019 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuya-nakayasu/f8e494af27111d67a1a48c458945aee6 to your computer and use it in GitHub Desktop.
Save takuya-nakayasu/f8e494af27111d67a1a48c458945aee6 to your computer and use it in GitHub Desktop.
モジュールファイル
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { StoreModule } from '@ngrx/store';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { counterReducer } from './components/my-counter/reducer/counter.reducer';
import { MyCounterComponent } from './components/my-counter/view/my-counter.component';
@NgModule({
declarations: [
AppComponent,
MyCounterComponent
],
imports: [
BrowserModule,
StoreModule.forRoot({ count: counterReducer }),
StoreDevtoolsModule.instrument({
}),
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment