其他 - 配置应用以使用Redux

优质
小牛编辑
124浏览
2023-12-01
  • 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.