generate enum
Command
ng generate enum
ng generate e
Generates a new, generic enum definition in the given project.
Arguments
name
The name of the enum.
Value Type
string
Options
project
The name of the project in which to create the enum. Default is the configured default project for the workspace.
Value Type
string
type
Adds a developer-defined type to the filename, in the format "name.type.ts".
Value Type
string
Jump to details