首页 > 解决方案 > 找不到管道“ngrxPush”

问题描述

我是 NgRx 的新手,过去一周我一直在学习。

所以,我试图检查Push Pipelet 指令

根据 NgRx 文档,这个人的安装将使用以下命令:

yarn add github:ngrx/component-builds.git

我的代码如下:

<ons-list-item expandable *ngFor="let user of users$ | ngrxPush">
 <!-- code here -->
</ons-list-item>

在那之后,我试图找到我需要导入的模块才能拥有这个管道。要拥有异步管道,我只需要导入CommonModule

任何想法我应该导入什么来让它工作?看起来这部分的文档不太清楚。

标签: angularngrxngrx-store

解决方案


您必须导入ReactiveComponentModule.

import { ReactiveComponentModule } from '@ngrx/component';

文档在这里


推荐阅读