Class generator

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

Create a class.



The name of the project.

Type string
Default projectName


Specifies if a spec file is generated.

Type boolean
Default false


Specifies the type of class.

Type string