配置应用以使用Redux

    • Create our application reducer

    app/index.ts

    app/reducers/index.ts

    Next we want Ng2-Redux to configure our store based on settings we provide. This should be done once, in the top-level component of your application.

    In this example we are creating a store that uses the middleware, which will add some logging functionality to the application.