mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +08:00
48 lines
779 B
Markdown
48 lines
779 B
Markdown
<!-- Links in /docs/documentation should NOT have `.md` at the end, because they end up in our wiki at release. -->
|
|
|
|
# ng generate module
|
|
|
|
## Overview
|
|
`ng generate module [name]` generates an NgModule
|
|
|
|
## Options
|
|
<details>
|
|
<summary>app</summary>
|
|
<p>
|
|
`--app` (alias: `-a`) _default value: 1st app_
|
|
</p>
|
|
<p>
|
|
Specifies app name to use.
|
|
</p>
|
|
</details>
|
|
|
|
<details>
|
|
<summary>flat</summary>
|
|
<p>
|
|
`--flat`
|
|
</p>
|
|
<p>
|
|
Flag to indicate if a dir is created.
|
|
</p>
|
|
</details>
|
|
|
|
<details>
|
|
<summary>spec</summary>
|
|
<p>
|
|
`--spec`
|
|
</p>
|
|
<p>
|
|
Specifies if a spec file is generated.
|
|
</p>
|
|
</details>
|
|
|
|
<details>
|
|
<summary>routing</summary>
|
|
<p>
|
|
`--routing`
|
|
</p>
|
|
<p>
|
|
Specifies if a routing module file should be generated.
|
|
</p>
|
|
</details>
|