mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
938 B
938 B
ng generate class
Overview
ng generate class [name]
generates a class
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.
spec
--spec
Specifies if a spec file is generated.
type
--type
Specifies the type of class.