From 6363db89d0c1201e59008d480deae3c6fa564165 Mon Sep 17 00:00:00 2001 From: mgechev Date: Fri, 17 May 2019 18:30:43 -0400 Subject: [PATCH] docs: add dynamic import allowed syntax to the deprecation guide (#30545) PR Close #30545 --- aio/content/guide/deprecations.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aio/content/guide/deprecations.md b/aio/content/guide/deprecations.md index e6dc264347..13949b9c10 100644 --- a/aio/content/guide/deprecations.md +++ b/aio/content/guide/deprecations.md @@ -289,6 +289,12 @@ const routes: Routes = [{ +
+ +**Declaration syntax**: It's important to follow the route declaration syntax `loadChildren: () => import('...').then(m => m.ModuleName)` to allow `ngc` to discover the lazy-loaded module and the associated `NgModule`. You can find the complete list of allowed syntax constructs [here](https://github.com/angular/angular-cli/blob/a491b09800b493fe01301387fa9a025f7c7d4808/packages/ngtools/webpack/src/transformers/import_factory.ts#L104-L113). These restrictions will be relaxed with the release if Ivy since it'll no longer use `NgFactories`. + +
+ {@a activatedroute-props}