Universal generator
This is the documentation for Angular 6.
You can switch to the
latest version Angular 10.
ng generate universal [--[argument]=[value]]
Create an Angular universal app.
Options
--clientProject
#
Name of related client app. --appId
#
The appId to use withServerTransition. Type | string |
Default | serverApp |
--main
#
The name of the main entry-point file. Type | string |
Default | main.server.ts |
--test
#
The name of the test entry-point file. --tsconfigFileName
#
The name of the TypeScript configuration file. Type | string |
Default | tsconfig.server |
--testTsconfigFileName
#
The name of the TypeScript configuration file for tests. Type | string |
Default | tsconfig.spec |
--appDir
#
The name of the application directory. --rootModuleFileName
#
The name of the root module file. Type | string |
Default | app.server.module.ts |
--rootModuleClassName
#
The name of the root module class. Type | string |
Default | AppServerModule |
--skipInstall
#
Skip installing dependency packages. Type | boolean |
Default | false |