我刚将我的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.
我已经试图找出如何修复这个问题,但是由于文档很少,我找不到答案。什么是这个预编译数组,我在哪里可以找到它或者如何添加它?