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