Last active
July 2, 2018 18:42
-
-
Save roelofjan-elsinga/1f1ccda2be55030640dadff6fb13b4d3 to your computer and use it in GitHub Desktop.
Initialize ng2-redux in Angular
This file contains hidden or 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 {NgModule} from '@angular/core'; | |
import {AppComponent} from './app.component'; | |
import {NgRedux, NgReduxModule} from '@angular-redux/store'; | |
import {store} from "./redux"; | |
import {IAppState} from "./redux/interfaces/state"; | |
@NgModule({ | |
declarations: [ | |
AppComponent | |
], | |
imports: [ | |
NgReduxModule, | |
], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { | |
constructor(private ngRedux: NgRedux<IAppState>) { | |
ngRedux.provideStore(store); | |
} | |
ngDoBootstrap() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment