@nx/angular:application
Creates an Angular application.
Creates an Angular application.
Create an application named my-app:
1nx g @nx/angular:application apps/my-app
21nx generate application ...
21nx g app ... #same
2By default, Nx will search for application in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/angular:application ...
2Show what will be generated without writing to disk:
1nx g application ... --dry-run
2The directory of the new application.
esbuildesbuild, webpackBundler to use to build the application.
^[a-zA-Z][^:]*$The name of the application.
trueEnable routing for the application.
trueGenerate an application that is setup to use standalone components.
falseWhether to configure Tailwind CSS for the application.
Backend project that provides data to this application. This sets up proxy.config.json.
playwrightplaywright, cypress, noneTest runner to use for end to end (E2E) tests.
falseSpecifies if the style will be in the ts file.
falseSpecifies if the template will be in the ts file.
eslinteslint, noneThe tool to use for running lint checks.
falseGenerate a Angular app with a minimal setup.
appFormat: html-selectorThe prefix to apply to generated selectors.
The port at which the remote application should be served.
csscss, scss, sass, lessThe file extension to be used for style files.
falseSkip creating spec files.
trueCreate an application with stricter type checking and build optimization options.
falseWhether or not to configure the ESLint parserOptions.project option. We do not do this by default for lint performance reasons.
falseCreates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.
Creates a server application using the Server Routing and App Engine APIs (Developer Preview). Note: this is only supported in Angular versions >= 19.0.0.
Add tags to the application (used for linting).
jestjest, vitest, noneTest runner to use for unit tests.
Emulated, None, ShadowDomSpecifies the view encapsulation strategy.
falseCreate an application at the root of the workspace.
falseSkip formatting files.
falseDo not add dependencies to package.json.
trueSplit the project configuration into <projectRoot>/project.json rather than including it inside workspace.json.
Nx only supports standaloneConfig