generate interface
Command
ng generate interface
ng generate i
Creates a new, generic interface definition in the given project.
Arguments
name
The name of the interface.
Value Type
string
type
Adds a developer-defined type to the filename, in the format "name.type.ts".
Value Type
string
Options
prefix
A prefix to apply to generated selectors.
Value Type
string
project
The name of the project.
Value Type
string
Jump to details