mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 14:02:43 +08:00
28 lines
491 B
Markdown
28 lines
491 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>
|
|
`--app` (alias: `-a`) _default value: 1st app_
|
|
</p>
|
|
<p>
|
|
Specifies app name to use.
|
|
</p>
|
|
</details>
|
|
|
|
<details>
|
|
<summary>spec</summary>
|
|
<p>
|
|
`--spec`
|
|
</p>
|
|
<p>
|
|
Specifies if a spec file is generated.
|
|
</p>
|
|
</details>
|