Angular 8 References/ CLI
References

Class generator

This is the documentation for Angular 8.
You can switch to the latest version Angular 10.
ng generate class [name] [--[argument]=[value]]
ng generate cl

Create a class.

Options

--project#

The name of the project.
Type string
Default projectName

--spec#

Specifies if a spec file is generated.
Type boolean
Default false

--type#

Specifies the type of class.
Type string