Simple Docs for angular cli command | Routing
See original GitHub issueπ Docs or angular.io bug report
βοΈDescription
Hi All,
The documentation for creating feature module with routing here with routing needs to be more simplified.
π¬ Minimal Reproduction
As per above description the command auto generates following files
- CustomersModule
- CustomersComponent.
Where as the command ng generate module customers --route customers --module app.module
creates following files.
- CustomersModule
- CustomersComponent
- CustomersRoutingModule
Whatβs the affected URL?**
βοΈ
Docs for creating feature module with routing here
Reproduction Steps**
N/A
Expected vs Actual Behavior**
The docs should be improved to clearly stating what is happening as follows.
ng generate module customers --route customers --module app.module
.
Expected Behavior :-
The above command creates the following files.
- CustomersModule
- CustomersComponent
- CustomersRoutingModule
Once above files are created below configuration are auto-wired.
- The customers route, specified with the --route option, is added to the routes array inside the _app-routing.module.t_s file, using the lazy-loading syntaxβ¦
- The blank route is added to the routes array inside the customers-routing.module.ts file.
π·Screenshot
π₯ Exception or Error
N/A
π Your Environment
N/A
βοΈ Browser info
N/A
βοΈ Anything else relevant?
N/A
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
CLI Overview and Command Reference - Angular
The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly from a command...
Read more >Getting Started βοΈWith Angular Routing Using Angular CLI
By using the command line parameter "--routing", we're able to create a routing module in the Angular application. So, by using any of...
Read more >single-spa-angular
First, create an angular application. This requires installing Angular CLI. Note that the --prefix is important so that when you have multiple angularΒ ......
Read more >Creating Angular Projects With Angular CLI - Medium
This file contains an empty default implementation of a Angular routing module. This module is also added to AppModule, so that you can...
Read more >Getting Started With Angular Using the Angular CLI
The ng build command outputs these to the dist/my-first-angular-app folder to access the built files for deployment. You can use these files toΒ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems like this issue can be closed after #38480
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.