如何处理Angular应用的错误消息: No pipe found with name async

错误消息:

如何处理Angular应用的错误消息: No pipe found with name asyncsrc/app/ngrxdemo/container/component/counter/counter.component.html:8:27 - error NG8004: No pipe found with name ‘async’.


8 当前数:{undefined{ counter$ | async }}

~~~~~


src/app/ngrxdemo/container/component/counter/counter.component.ts:9:16

9 templateUrl: ‘./counter.component.html’,

~~~~~~~~~~~~~~~~~~~~~~~~~~

Error occurs in the template of component CounterComponent.


虽然CounterComponent作为child Component,其parent Component里已经申明了包含async pipe的Common Module,但是仍然需要在child Component里也import Common Module:

如何处理Angular应用的错误消息: No pipe found with name asyncimport之后问题解决:

如何处理Angular应用的错误消息: No pipe found with name async


上一篇:Linux下虚拟内存不足怎么办,如何快速增加swap分区


下一篇:【转】Windows系统环境变量列表