generate class
Command
ng generate classng generate clCreates a new, generic class definition in the given project.
Arguments
nameThe name of the new class.
Value Type
stringOptions
projectThe name of the project.
Value Type
stringskip-testsDo not create "spec.ts" test files for the new class.
Value Type
booleanDefaultfalsetypeAdds a developer-defined type to the filename, in the format "name.type.ts".
Value Type
stringJump to details