Skip to content

Commit 823dd5b

Browse files
alan-agius4atscott
authored andcommitted
docs: update web-worker CLI commands to bash style (angular#38421)
With this change we update the CLI generate commands to be in bash style. PR Close angular#38421
1 parent d6d7caa commit 823dd5b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

aio/content/guide/web-worker.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ The CLI does not support running Angular itself in a web worker.
1414

1515
To add a web worker to an existing project, use the Angular CLI `ng generate` command.
1616

17-
`ng generate web-worker` *location*
17+
```bash
18+
ng generate web-worker <location>
19+
```
1820

1921
You can add a web worker anywhere in your application.
2022
For example, to add a web worker to the root component, `src/app/app.component.ts`, run the following command.
2123

22-
`ng generate web-worker app`
24+
```bash
25+
ng generate web-worker app
26+
```
2327

2428
The command performs the following actions.
2529

0 commit comments

Comments
 (0)