在 Angular 17 中注册 AG GRID 主细节模块

问题描述 投票:0回答:1

当我转到组件时,我收到以下警告

AG Grid: unable to use masterDetail as the MasterDetailModule is not registered. Check if you have registered the module:
           
    import { ModuleRegistry } from '@ag-grid-community/core';
    import { MasterDetailModule } from '@ag-grid-enterprise/master-detail';
    
    ModuleRegistry.registerModules([ MasterDetailModule ]);

我尝试将其注册在同一个模块中。我的项目没有app.module.ts

ag-grid master-detail angular17
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.