[angular] Asynchronous routing, how to implement global module module

how does the asynchronous routing module access the global module?

  1. the asynchronous routing method (Asynchronous routing) is used because of the project. In app.module.ts, the global module modlue of imports (such as component library, common components, etc.) can be directly used in non-asynchronous routed component, but asynchronous routed component cannot be used, so it needs to be re-imported by import to be used normally. How to avoid repeated imports of modules loaded by asynchronous routes?
Mar.13,2021
Menu