How to import NgZorroAntdModule when a module uses lazy loading mode

I imported NgZorroAntdModule, into the core module when loading the submodule using lazy loading mode, but the submodule reported an error and no NgZorroAntdModule was found.

sharedNgZorroAntdModule(shared)NgZorroAntdModuleNgZorroAntdModule

what should I do? Thank you

Jul.22,2021

you can put the ng-zorro in the shared module, and each time you create the module, you can import the shared module; note that the shared module remembers to export.
reference: http://www.deathghost.cn/arti.

Menu