Module generator
This is the documentation for Angular 6.
You can switch to the
latest version Angular 10.
ng generate module [name] [--[argument]=[value]]
ng generate m
Create an Angular module.
Options
--project
#
--routing
#
Generates a routing module. Type | boolean |
Default | false |
--routingScope
#
The scope for the generated routing. Type | string |
Values | Child, Root |
Default | Child |
--spec
#
Specifies if a spec file is generated. Type | boolean |
Default | true |
--flat
#
Flag to indicate if a dir is created. Type | boolean |
Default | false |
--module
#
Allows specification of the declaring module.