Alan 068bb4001d docs: add deprecation and pr note
Docs are deprecated in favor of the the new pages in AIO which are WIP.
2019-01-09 09:14:13 -08:00

1.6 KiB

Documentation below is for CLI version 6 and we no longer accept PRs to improve this. For version 7 see here.

ng generate module

Overview

ng generate module [name] generates an NgModule

Alias

m - ng generate m [name]

Options

dry-run

--dry-run (alias: -d)

Run through without making any changes.

force

--force (alias: -f)

Forces overwriting of files.

project

--project

The name of the project.

routing

--routing

Generates a routing module.

routing-scope

--routing-scope

The scope for the generated routing.

spec

--spec

Specifies if a spec file is generated.

flat

--flat

Flag to indicate if a dir is created.

module

--module (alias: -m)

Allows specification of the declaring module.