Skip to content

Latest commit

 

History

History
103 lines (98 loc) · 2.06 KB

application.md

File metadata and controls

103 lines (98 loc) · 2.06 KB

Documentation below is for CLI version 6 and we no longer accept PRs to improve this. For version 7 see here.

ng generate application

Overview

ng generate application [name] creates an Angular application.

Alias

app - ng generate app [name]

Options

dry-run

--dry-run (alias: -d)

Run through without making any changes.

force

--force (alias: -f)

Forces overwriting of files.

inline-style

--inline-style (alias: -s)

Specifies if the style will be in the ts file.

inline-template

--inline-template (alias: -t)

Specifies if the template will be in the ts file.

view-encapsulation

--view-encapsulation

Specifies the view encapsulation strategy.

routing

--routing

Generates a routing module.

prefix

--prefix (alias: -p)

The prefix to apply to generated selectors.

style

--style

The file extension to be used for style files.

skip-tests

--skip-tests (alias: -S)

Skip creating spec files.

skip-package-json

--skip-package-json

Do not add dependencies to package.json.