When we use NGRX, we need to create some bolipates. Now with Angulalr6, we can use CLI to generate those code for us.

Install:

@ngrx/schematics: Scaffolding library for Angular applications using NgRx.

npm install @ngrx/schematics --save-dev
npm install @ngrx/{store,effects,entity,store-devtools} --save

Config:

ng config cli.defaultCollection @ngrx/schematics

Create a root store:

ng generate store State --root --module app.module.ts

Create a feature store:

ng g feature travel/store/Travel --group true --module travel/travel.module.ts

The structure we want is like:

最新文章

  1. 发布在即!.NET Core 1.0 RC2已准备就绪!!
  2. simple mail example for smtp debug
  3. [Golang]Go Packages
  4. POJ 3253 Fence Repair(优先队列,哈夫曼树,模拟)
  5. Finding a needle in Haystack: Facebook’s photo storage
  6. cmake简易教程
  7. 3DTouch简单了解
  8. vmwvare 网卡设置讲解
  9. phpcmsV9手机站内容页有时内容不显示
  10. 第一次安装jshint,jshint新手使用记录
  11. 最长上升子序列(logN算法)
  12. Problem : (1.2.1) Text Reverse
  13. java内部类、接口、集合框架、泛型、工具类、实现类
  14. Jenkins自定义变量共享
  15. laravel 更新验证
  16. 在 vue 中使用 vieiwer 图片预览插件
  17. http stream
  18. java实现文件监控
  19. 【 Gym - 101138F 】GukiZ Height (数学)
  20. nginx 刷新显示404

热门文章

  1. SQLYog 快捷键
  2. Redis基本属性的使用-详细
  3. 【Codeforces1117C_CF1117C】Magic Ship(构造)
  4. EF--DBFirst
  5. Coursera公开课-Machine_learing:编程作业
  6. CSS——伪类
  7. 学习随笔-Java WebService
  8. 基于证书的MS SQL2005数据库镜像搭建
  9. 自己写一个爬虫 copider
  10. Linux Shell ssh登录脚本