The Wayback Machine - https://web.archive.org/web/20240920155422/https://angular.dev/cli/generate/web-worker/
CLI

generate web-worker

Command
ng generate web-worker

Creates a new, generic web worker definition in the given project.

Arguments

name

The name of the worker.

Value Typestring

Options

project

The name of the project.

Value Typestring
snippet

Add a worker creation snippet in a sibling file of the same name.

Value TypebooleanDefaulttrue
Jump to details
HTTPS · web.archive.org
← Home