DeprecatedLoadChildren
格式为 path/to/file#exportName ,用作要加载的一组路由的 URL。
A string of the form path/to/file#exportName that acts as a URL for a set of routes to load.
已弃用: The string form of loadChildren is deprecated in favor of the LoadChildrenCallback function which uses the ES dynamic import() expression. This offers a more natural and standards-based mechanism to dynamically load an ES module at runtime.
不推荐使用 loadChildren 的 string 形式,而推荐使用使用 ES 的动态 import() 表达式 LoadChildrenCallback。这提供了一种更自然且基于标准的机制,可在运行时动态加载 ES 模块。
type DeprecatedLoadChildren = string;
参见
loadChildrenCallback