docs: update web-worker CLI commands to bash style (#38421)

With this change we update the CLI generate commands to be in bash style.

PR Close #38421
This commit is contained in:
Alan Agius 2020-08-12 10:44:45 +02:00 committed by Andrew Scott
parent d6d7caa2a8
commit 823dd5b341
1 changed files with 6 additions and 2 deletions

View File

@ -14,12 +14,16 @@ The CLI does not support running Angular itself in a web worker.
To add a web worker to an existing project, use the Angular CLI `ng generate` command.
`ng generate web-worker` *location*
```bash
ng generate web-worker <location>
```
You can add a web worker anywhere in your application.
For example, to add a web worker to the root component, `src/app/app.component.ts`, run the following command.
`ng generate web-worker app`
```bash
ng generate web-worker app
```
The command performs the following actions.