小编RJ *_*iki的帖子

Angular 4 + Redux(或ngrx/store)文件夹和文件结构

参考Angular官方网站的文件结构样式:

https://angular.io/docs/ts/latest/guide/style-guide.html#!#04-06

如果我想将Redux(或ngrx/store)实现到我的新Angular 4项目中,以这种方式构建我的应用程序会更好吗?

    project root

    ??? src/
    ?   ??? app/
    ?   ?  ???stores/
    ?   ?  ?  ??? heros/
    ?   ?  ?  ?  ??? heros.actions.ts|reducer|effects|store.ts
    ?   ?  ?  ? 
    ?   ?  ?  ??? ..../
    ?   ?  ?  ?  ??? .....
    ?   ?  ?  
    ?   ?  ??? containers/
    ?   ?  ?  ??? heros/
    ?   ?  ?  ?  ??? heros.component.ts|html|css|spec.ts
    ?   ?  ?  ?  ?  ??? ......
    ?   ?  ?  
    ?   ?  ?
    ?   ?  ??? components/
    ?   ?  ?  ??? hero-list/ …

javascript redux ngrx angular

10
推荐指数
1
解决办法
3048
查看次数

标签 统计

angular ×1

javascript ×1

ngrx ×1

redux ×1