Module generator
Module generator
This is the documentation for Angular 6.
You can switch to the latest version Angular 7.
You can switch to the latest version Angular 7.
ng generate module [name] [--[argument]=[value]]
ng generate m
Create an Angular module.
Options
project
#
The name of the project.
Type | string |
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.
Type | string |
Aliases | m |