2018-10-18 14:08:09 -07:00

2.2 KiB

Documentation below is for CLI version 6. For version 7 see here.

ng generate universal

Overview

ng generate universal [name] creates an Angular universal app.

Options

dry-run

--dry-run (alias: -d)

Run through without making any changes.

force

--force (alias: -f)

Forces overwriting of files.

client-project

--client-project

Name of related client app.

app-id

--app-id

The appId to use withServerTransition.

main

--main

The name of the main entry-point file.

test

--test

The name of the test entry-point file.

tsconfig-file-name

--tsconfig-file-name

The name of the TypeScript configuration file.

test-tsconfig-file-name

--test-tsconfig-file-name

The name of the TypeScript configuration file for tests.

app-dir

--app-dir

The name of the application directory.

root-module-file-name

--root-module-file-name

The name of the root module file

root-module-class-name

--root-module-class-name

The name of the root module class.

skip-install

--skip-install

Skip installing dependency packages.