我使用generate命令在離子3中生成了一個新頁面。當我嘗試將它添加到APP模塊,它拋出下面的錯誤, Uncaught Error: Unexpected value 'NewTodo' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation.
以前在使用離子2.X我從來沒
使用IonicPage和IonicPageModule可以延遲加載離子3頁。問題是這些懶惰的加載頁面無法訪問管道。 Failed to navigate: Template parse errors:
The pipe 'myPipe' could not be found ("")
This question描述了問題並提供瞭解決方案。我對建議的解決方案的唯一擔憂是它需要在所有延遲加載的頁