我使用的是Angular 6.1,节点8.11.3,并且我尝试使用主要详细信息来实现树状视图,此处提供了相同的示例https://plnkr.co/edit/?p=preview。但是我遇到了以下错误,并且主详细信息组件未在行详细信息的扩展上呈现。
MasterComponent.html:1 ERROR Error: No component factory found for DetailPanelComponent. Did you add it to @NgModule.entryComponents?
at noComponentFactoryError (core.js:3258)
at CodegenComponentFactoryResolver.push../node_modules/@angular/core/fesm5/core.js.CodegenComponentFactoryResolver.resolveComponentFactory (core.js:3293)
at Ng2FrameworkComponentWrapper.push../node_modules/ag-grid-angular/dist/ng2FrameworkComponentWrapper.js.Ng2FrameworkComponentWrapper.createComponent (ng2FrameworkComponentWrapper.js:66)
at DynamicAgNg2Component.createComponent (ng2FrameworkComponentWrapper.js:45)
at DynamicAgNg2Component.push../node_modules/ag-grid-angular/dist/ng2FrameworkComponentWrapper.js.BaseGuiComponent.init (ng2FrameworkComponentWrapper.js:85)
at DynamicAgNg2Component.init (ng2FrameworkComponentWrapper.js:41)
at ComponentResolver.push../node_modules/ag-grid/dist/lib/components/framework/componentResolver.js.ComponentResolver.initialiseComponent (componentResolver.js:295)
at ComponentResolver.push../node_modules/ag-grid/dist/lib/components/framework/componentResolver.js.ComponentResolver.createAgGridComponent (componentResolver.js:246)
at rowComp.js:673
at rowContainerComponent.js:58
我遵循示例中提到的完全相同的内容,但针对Angular 6。
请提出建议。