{ "id": "api/router/DeprecatedLoadChildren", "title": "DeprecatedLoadChildren", "contents": "\n\n
\n
\n
\n \n API > @angular/router\n
\n \n
\n \n
\n

DeprecatedLoadChildrenlink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

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

\n\n \n
\n \n \n
\n

Deprecated: The string form of loadChildren is deprecated in favor of the\nLoadChildrenCallback function which uses the ES dynamic import() expression.\nThis offers a more natural and standards-based mechanism to dynamically\nload an ES module at runtime.

\n\n
\n\n \n
\n \n type DeprecatedLoadChildren = string;\n \n
\n\n \n
\n

See alsolink

\n
    \n \n
  • loadChildrenCallback

    \n
  • \n
\n
\n\n\n \n \n\n \n\n\n
\n
\n\n\n" }