diff --git a/aio/content/guide/web-worker.md b/aio/content/guide/web-worker.md index cdf2dd8a8e..8151625e98 100644 --- a/aio/content/guide/web-worker.md +++ b/aio/content/guide/web-worker.md @@ -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 +``` 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.