Created
March 21, 2019 08:25
-
-
Save takuya-nakayasu/f8e494af27111d67a1a48c458945aee6 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 { 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