mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 11:44:05 +08:00
28 lines
533 B
Markdown
28 lines
533 B
Markdown
<!-- Links in /docs/documentation should NOT have `.md` at the end, because they end up in our wiki at release. -->
|
|
|
|
# ng generate class
|
|
|
|
## Overview
|
|
`ng generate class [name]` generates a class
|
|
|
|
## Options
|
|
<details>
|
|
<summary>app</summary>
|
|
<p>
|
|
<code>--app</code> (aliases: <code>-a</code>) <em>default value: 1st app</em>
|
|
</p>
|
|
<p>
|
|
Specifies app name to use.
|
|
</p>
|
|
</details>
|
|
|
|
<details>
|
|
<summary>spec</summary>
|
|
<p>
|
|
<code>--spec</code>
|
|
</p>
|
|
<p>
|
|
Specifies if a spec file is generated.
|
|
</p>
|
|
</details>
|