Template parse: The pipe could not be found

半城伤御伤魂 提交于 2019-12-06 11:22:20

I was able to get this working by importing this into the specific pages *.module.ts file.

In my case moving the MomentModule import from app.module.ts to the same module as component was fixed it.

You can add momentModule to specific page module, or it'd be better to add it on shared module.

Hope it helps you.

If this exists in the spec file (Jasmine, protractor)

import { MomentModule } from "ngx-moment";

beforeEach(() => {

  imports: [ MomentModule ]

});

Worked for me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!