Module generator

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

--lintFix#

When true, applies lint fixes after generating the module.

Type boolean
Default false

--module#

Allows specification of the declaring module.

Type string
Aliases m

--project#

The name of the project.

Type string

--route#

The route path for a lazy-loaded module. When supplied, creates a component in the new module, and adds the route to that component in the Routes array declared in the module provided in the --module option.

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