Application generator

This is the documentation for Angular 6.
You can switch to the latest version Angular 9.
ng generate application [name] [--[argument]=[value]]
ng generate app

Create an Angular application.

Options

--inlineStyle#

Specifies if the style will be in the ts file.

Type boolean
Default false
Aliases s

--inlineTemplate#

Specifies if the template will be in the ts file.

Type boolean
Default false
Aliases t

--viewEncapsulation#

Specifies the view encapsulation strategy.

Type string
Values Emulated, Native, None
Default Emulated

--routing#

Generates a routing module.

Type boolean
Default false

--prefix#

The prefix to apply to generated selectors.

Type string
Default app
Aliases p

--style#

The file extension to be used for style files.

Type string
Default css

--skipTests#

Skip creating spec files.

Type boolean
Default false
Aliases S

--skipPackageJson#

Do not add dependencies to package.json.

Type boolean
Default false