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