W3cubDocs

/Angular 10

DeprecatedLoadChildren

type-alias deprecated

A string of the form path/to/file#exportName that acts as a URL for a set of routes to load.

Deprecated: 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.

type DeprecatedLoadChildren = string;

See also

  • loadChildrenCallback

© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/router/DeprecatedLoadChildren