34 lines
744 B
Markdown
34 lines
744 B
Markdown
## Examples
|
|
|
|
##### Simple Application
|
|
|
|
Create an application named `my-app`:
|
|
|
|
```bash
|
|
nx g @nx/angular:application apps/my-app
|
|
```
|
|
|
|
##### Specify style extension
|
|
|
|
Create an application named `my-app` in the `my-dir` directory and use `scss` for styles:
|
|
|
|
```bash
|
|
nx g @nx/angular:app my-dir/my-app --style=scss
|
|
```
|
|
|
|
##### Single File Components application
|
|
|
|
Create an application with Single File Components (inline styles and inline templates):
|
|
|
|
```bash
|
|
nx g @nx/angular:app apps/my-app --inlineStyle --inlineTemplate
|
|
```
|
|
|
|
##### Set custom prefix and tags
|
|
|
|
Set the prefix to apply to generated selectors and add tags to the application (used for linting).
|
|
|
|
```bash
|
|
nx g @nx/angular:app apps/my-app --prefix=admin --tags=scope:admin,type:ui
|
|
```
|