From 52c7a4bfc6301eb4c6cf52f1b04569ba617b245b Mon Sep 17 00:00:00 2001 From: Akash Date: Sun, 16 Aug 2020 01:52:36 +0530 Subject: [PATCH] docs: ng generate module command doc change (#38480) PR Close #38480 --- aio/content/guide/lazy-loading-ngmodules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/lazy-loading-ngmodules.md b/aio/content/guide/lazy-loading-ngmodules.md index 8931cf8b8e..479c0a5567 100644 --- a/aio/content/guide/lazy-loading-ngmodules.md +++ b/aio/content/guide/lazy-loading-ngmodules.md @@ -87,7 +87,7 @@ To make one, enter the following command in the terminal, where `customers` is t ng generate module customers --route customers --module app.module -This creates a `customers` folder with the new lazy-loadable module `CustomersModule` defined in the `customers.module.ts` file. The command automatically declares the `CustomersComponent` inside the new feature module. +This creates a `customers` folder having the new lazy-loadable feature module `CustomersModule` defined in the `customers.module.ts` file and the routing module `CustomersRoutingModule` defined in the `customers-routing.module.ts` file. The command automatically declares the `CustomersComponent` and imports `CustomersRoutingModule` inside the new feature module. Because the new module is meant to be lazy-loaded, the command does NOT add a reference to the new feature module in the application's root module file, `app.module.ts`. Instead, it adds the declared route, `customers` to the `routes` array declared in the module provided as the `--module` option.