从Beta升级到RC1后,管道似乎无法正确传递数据。我收到以下内容: ORIGINAL EXCEPTION: TypeError: Cannot read property '1' of undefined
ORIGINAL STACKTRACE:
TypeError: Cannot read property '1' of undefined
这是一个古老的plunker,但它表明我用我
我跟着这个链接创建我自己的时间前管: Angular 2 "time ago" pipe 但是当我注射,并用它,我看到的错误: Template parse errors: The pipe 'timeAgo' could not be found 下面是我的代码,请帮我解决这个问题,非常感谢! timeAgo.pipe.ts import { Pipe, ChangeDetectorRef }