我跟着這個鏈接創建我自己的時間前管: Angular 2 "time ago" pipe 但是當我注射,並用它,我看到的錯誤: Template parse errors: The pipe 'timeAgo' could not be found 下面是我的代碼,請幫我解決這個問題,非常感謝! timeAgo.pipe.ts import { Pipe, ChangeDetectorRef }
從Beta升級到RC1後,管道似乎無法正確傳遞數據。我收到以下內容: ORIGINAL EXCEPTION: TypeError: Cannot read property '1' of undefined
ORIGINAL STACKTRACE:
TypeError: Cannot read property '1' of undefined
這是一個古老的plunker,但它表明我用我