我在控制台上看到此警告消息。我正在使用新的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.
答案 0 :(得分:10)
升级到路由器3 beta 2删除了警告