问题标签 [ngrxpush]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
277 浏览

angular - Angular 10/11:找不到管道“ngrxPush”

尝试使用 ngrxPush-pipe 时,出现以下错误:“找不到管道‘ngrxPush’”

我已经安装了 ngrx 组件:

我在 AppModule 中导入管道:

并从 AppComponent 的模板调用管道:

有什么想法会出错吗?Angular 10 和 11 中发生错误,使用 NgRx 组件/10。

还尝试禁用 Ivy,但没有解决该错误。

Navigation.component.ts:

App.component.ts:

0 投票
1 回答
73 浏览

angular - 迁移以用 `ngrxPush` 替换 `async` 管道

在使用 Angular 原理图生成我的 Angular 代码时,我注意到了这条线

ngrx-push-migration - 迁移以替换async管道ngrxPush

这看起来很有趣,所以我用谷歌搜索并发现

ngrxPush管道用作异步管道的替代品。它包含对更改检测的智能处理,使我们能够在全区域和无区域模式下运行,而无需对代码进行任何更改

这听起来很有趣,所以我决定试一试,但似乎需要选项

在此处输入图像描述

有什么建议吗?迁移安全吗?