Angular 2 RC4新路由器警告消息

时间:2016-07-11 01:47:29

标签: angular router

我在控制台上看到此警告消息。我正在使用新的angular 2路由器。我错过了什么或者我必须做些什么来解决这个警告?

'DashboardComponent' not found in precompile array.
To ensure all components referred to by the RouterConfig are compiled, you must add 'DashboardComponent' to the 'precompile' array of your application component.
This will be required in a future release of the router.

1 个答案:

答案 0 :(得分:10)

升级到路由器3 beta 2删除了警告