【发布时间】:2016-07-01 11:40:32
【问题描述】:
我刚刚将我的 Angular2 项目更新为 RC4,当我打开我的应用程序时,路由器现在在控制台中发送此警告消息:
router.umd.js:2466 'FrontpageComponent' not found in precompile array. To ensure all components referred to by the RouterConfig are compiled, you must add 'FrontpageComponent' to the 'precompile' array of your application component. This will be required in a future release of the router.
我试图弄清楚我究竟需要做什么来解决这个问题,但由于文档很少,我找不到答案。这个预编译数组是什么,我在哪里可以找到它或者如何添加它?
【问题讨论】: