Universal generator

ng generate universal [--[argument]=[value]]

Create an Angular universal app.

Options

appDir#

The name of the application directory.

Type string
Default app

appId#

The appId to use withServerTransition.

Type string
Default serverApp

clientProject#

Name of related client app.

Type string

main#

The name of the main entry-point file.

Type string
Default main.server.ts

rootModuleClassName#

The name of the root module class.

Type string
Default AppServerModule

rootModuleFileName#

The name of the root module file.

Type string
Default app.server.module.ts

skipInstall#

Skip installing dependency packages.

Type boolean
Default false

test#

The name of the test entry-point file.

Type string

testTsconfigFileName#

The name of the TypeScript configuration file for tests.

Type string
Default tsconfig.spec

tsconfigFileName#

The name of the TypeScript configuration file.

Type string
Default tsconfig.server