为什么 ActionTypes 不使用 Enums
来源:7-4 实战认证信息流

GIPanda
2018-04-24
quote.action.ts
export const ActionTypes = { LOAD: type('[Quote] Load'), LOAD_SUCCESS: type('[Quote] Load success'), LOAD_FAIL: type('[Quote] Load fail') };
写回答
1回答
-
接灰的电子产品
2018-04-24
ngrx 是符合 redux 的 angular 实现,而type就是字符串。这样才会在redux devtools 中看得到
012018-04-25
Angular打造企业级协作平台,让你在Angular领域中出类拔萃
全网首个介绍官方 Material 组件库用法与 Redux 在 Angular 中的应用
998 学习 · 536 问题
相似问题