angular 報錯
ERROR Error: Uncaught (in promise): Error: Unexpected module 'B' declared by the module 'A'. Please add a @Pipe/@Directive/@Component annotation.
當在一個"模塊A"文件中導入(import)另一個"模塊B"時, 被導入的模塊需要添加到當前這個模塊的@ngModule修飾器中的imports字段中,如果加到了
declarations的話,就會報上面的錯誤.