2018-10-18 14:08:09 -07:00

1.1 KiB

Documentation below is for CLI version 6. For version 7 see here.

ng generate class

Overview

ng generate class [name] generates a class

Alias

cl - ng generate cl [name]

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.