mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 03:23:57 +08:00
81 lines
1.4 KiB
Markdown
81 lines
1.4 KiB
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>dry-run</summary>
|
|
<p>
|
|
<code>--dry-run</code> (alias: <code>-d</code>)
|
|
</p>
|
|
<p>
|
|
Run through without making any changes.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>force</summary>
|
|
<p>
|
|
<code>--force</code> (alias: <code>-f</code>)
|
|
</p>
|
|
<p>
|
|
Forces overwriting of files.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>project</summary>
|
|
<p>
|
|
<code>--project</code>
|
|
</p>
|
|
<p>
|
|
The name of the project.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>routing</summary>
|
|
<p>
|
|
<code>--routing</code>
|
|
</p>
|
|
<p>
|
|
Generates a routing module.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>routing-scope</summary>
|
|
<p>
|
|
<code>--routing-scope</code>
|
|
</p>
|
|
<p>
|
|
The scope for the generated routing.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>spec</summary>
|
|
<p>
|
|
<code>--spec</code>
|
|
</p>
|
|
<p>
|
|
Specifies if a spec file is generated.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>flat</summary>
|
|
<p>
|
|
<code>--flat</code>
|
|
</p>
|
|
<p>
|
|
Flag to indicate if a dir is created.
|
|
</p>
|
|
</details>
|
|
<details>
|
|
<summary>module</summary>
|
|
<p>
|
|
<code>--module</code> (alias: <code>-m</code>)
|
|
</p>
|
|
<p>
|
|
Allows specification of the declaring module.
|
|
</p>
|
|
</details>
|