{
  "id": "api/router/LoadChildrenCallback",
  "title": "LoadChildrenCallback",
  "contents": "\n\n<article>\n  <div class=\"breadcrumb-container\">\n    <div class=\"breadcrumb\">\n      <script type=\"application/ld+json\">\n        {\n          \"@context\": \"http://schema.org\",\n          \"@type\": \"BreadcrumbList\",\n          \"itemListElement\": [\n            { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n            { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/router\", \"name\": \"@angular/router\" } },\n            { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/router/LoadChildrenCallback\", \"name\": \"LoadChildrenCallback\" } }\n          ]\n        }\n      </script>\n        <a href=\"/api\">API</a> > <a href=\"api/router\">@angular/router</a>\n    </div>\n    <div class=\"github-links\">\n  <a href=\"https://github.com/angular/angular/edit/master/packages/router/src/config.ts?message=docs(router)%3A%20describe%20your%20change...#L90-L110\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n  <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/router/src/config.ts#L90-L110\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n  </div>\n  \n  <header class=\"api-header\">\n    <h1 id=\"loadchildrencallback\">LoadChildrenCallback<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/LoadChildrenCallback#loadchildrencallback\"><i class=\"material-icons\">link</i></a></h1>\n    \n    <label class=\"api-type-label type-alias\">type-alias</label>\n    \n    \n    \n  </header>\n  \n  <aio-toc class=\"embedded\"></aio-toc>\n\n  <div class=\"api-body\">\n    \n  <section class=\"short-description\">\n    <p>A function that is called to resolve a collection of lazy-loaded routes.\nMust be an arrow function of the following form:\n<code>() => import('...').then(mod => mod.MODULE)</code></p>\n\n    <p><a href=\"api/router/LoadChildrenCallback#description\">See more...</a></p>\n  </section>\n  \n  \n  \n  <section class=\"type-alias-overview\">\n    <code-example language=\"ts\" hidecopy=\"true\">\n    type <a href=\"api/router/LoadChildrenCallback\" class=\"code-anchor\">LoadChildrenCallback</a> = () => <a href=\"api/core/Type\" class=\"code-anchor\">Type</a>&#x3C;any> | <a href=\"api/core/NgModuleFactory\" class=\"code-anchor\">NgModuleFactory</a>&#x3C;any> | Observable&#x3C;<a href=\"api/core/Type\" class=\"code-anchor\">Type</a>&#x3C;any>> | Promise&#x3C;<a href=\"api/core/NgModuleFactory\" class=\"code-anchor\">NgModuleFactory</a>&#x3C;any> | <a href=\"api/core/Type\" class=\"code-anchor\">Type</a>&#x3C;any> | any>;\n    </code-example>\n  </section>\n\n  \n<section class=\"see-also\">\n  <h2 id=\"see-also\">See also<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/LoadChildrenCallback#see-also\"><i class=\"material-icons\">link</i></a></h2>\n  <ul>\n  \n    <li><p><a href=\"api/router/Route#loadChildren\">Route.loadChildren</a></p>\n</li>\n  </ul>\n</section>\n\n\n  \n  \n<section class=\"description\">\n  <h2 id=\"description\">Description<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/LoadChildrenCallback#description\"><i class=\"material-icons\">link</i></a></h2>\n  <p>For example:</p>\n<code-example>\n[{\n  path: 'lazy',\n  loadChildren: () => import('./lazy-route/lazy.module').then(mod => mod.LazyModule),\n}];\n</code-example>\n\n  \n</section>\n\n\n  \n\n\n  </div>\n</article>\n\n<!-- links to this doc:\n - api/router\n - api/router/DeprecatedLoadChildren\n - api/router/LoadChildren\n-->\n<!-- links from this doc:\n - /api\n - api/core/NgModuleFactory\n - api/core/Type\n - api/router\n - api/router/LoadChildrenCallback#description\n - api/router/LoadChildrenCallback#loadchildrencallback\n - api/router/LoadChildrenCallback#see-also\n - api/router/Route#loadChildren\n - https://github.com/angular/angular/edit/master/packages/router/src/config.ts?message=docs(router)%3A%20describe%20your%20change...#L90-L110\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/router/src/config.ts#L90-L110\n-->"
}