docs: fix a grammatical error in lazy-loading-ngmodules guide (#42008)
PR Close #42008
This commit is contained in:
parent
d2296bc265
commit
e2f09fe8de
|
@ -106,7 +106,7 @@ The import path is the relative path to the module.
|
||||||
|
|
||||||
In Angular version 8, the string syntax for the `loadChildren` route specification [was deprecated](https://angular.io/guide/deprecations#loadchildren-string-syntax) in favor of the `import()` syntax. However, you can opt into using string-based lazy loading (`loadChildren: './path/to/module#Module'`) by including the lazy-loaded routes in your `tsconfig` file, which includes the lazy-loaded files in the compilation.
|
In Angular version 8, the string syntax for the `loadChildren` route specification [was deprecated](https://angular.io/guide/deprecations#loadchildren-string-syntax) in favor of the `import()` syntax. However, you can opt into using string-based lazy loading (`loadChildren: './path/to/module#Module'`) by including the lazy-loaded routes in your `tsconfig` file, which includes the lazy-loaded files in the compilation.
|
||||||
|
|
||||||
By default the CLI will generate projects which stricter file inclusions intended to be used with the `import()` syntax.
|
By default the CLI will generate projects with stricter file inclusions intended to be used with the `import()` syntax.
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue