CLI

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 Typestring

Options

project

The name of the project in which to create the enum. Default is the configured default project for the workspace.

Value Typestring
type

Adds a developer-defined type to the filename, in the format "name.type.ts".

Value Typestring
Jump to details