相关疑难解决方法(0)

在Angular2 RC4中,如何将组件添加到预编译数组?

我刚刚将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.
Run Code Online (Sandbox Code Playgroud)

我试图找出我需要做些什么来解决这个问题,但由于文档很少,我找不到答案.什么是这个预编译数组,我在哪里可以找到它或如何添加它?

router angular

21
推荐指数
1
解决办法
9030
查看次数

标签 统计

angular ×1

router ×1