Angular 8 References/ CLI
References

Module generator

This is the documentation for Angular 8.
You can switch to the latest version Angular 10.
ng generate module [name] [--[argument]=[value]]
ng generate m

Create an Angular module.

Options

--flat#

Flag to indicate if a dir is created.
Type boolean
Default false

--module#

Allows specification of the declaring module.
Type string
Aliases m

--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