Application generator

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

Create an Angular application.

Options

--experimentalIvy#

EXPERIMENTAL: Specifies whether to create a new application which uses the Ivy rendering engine.

Type boolean
Default false

--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

--minimal#

Create a barebones project without any testing frameworks.

Type boolean
Default false

--prefix#

The prefix to apply to generated selectors.

Type string
Default app
Aliases p

--routing#

Generates a routing module.

Type boolean
Default false

--skipPackageJson#

Do not add dependencies to package.json.

Type boolean
Default false

--skipTests#

Skip creating spec files.

Type boolean
Default false
Aliases S

--style#

The file extension to be used for style files.

Type string
Default css

--viewEncapsulation#

Specifies the view encapsulation strategy.

Type string
Values Emulated, Native, None
Default Emulated