Failed to compile.src/app/app.component.html:2:1- error NG8001:&#39;heroes&#39; is not a known element: 1. If &#39;heroes&#39; is an Angular component, then verify that it is part ofthis module. 2. To allow any element add &#39;NO_ERRORS_SCHEMA&#39; to the &#39;&#64;NgModule.schemas&#39;ofthis component.2<heroes></heroes>~~~~~~~~src/app/app.component.ts:5:165 templateUrl:&#39;./app.component.html&#39;,~~~~~~~~~~~~~~~~~~~~~~Error occurs in the template of component AppComponent.
查了半天是一个很简单的位置书写错误
对比一下粗心大意了
angular报错信息之 Can’t bind to ‘ngForOf’ since it isn’t a known property of ‘tr’. 这个就是缺少了一个angulaer模块