CLI

generate pipe

Command
ng generate pipe
ng generate p

Creates a new, generic pipe definition in the given project.

Arguments

name

The name of the pipe.

Value Typestring

Options

export

The declaring NgModule exports this pipe.

Value TypebooleanDefaultfalse
flat

When true (the default) creates files at the top level of the project.

Value TypebooleanDefaulttrue
module
Aliasm

The declaring NgModule.

Value Typestring
project

The name of the project.

Value Typestring
skip-import

Do not import this pipe into the owning NgModule.

Value TypebooleanDefaultfalse
skip-tests

Do not create "spec.ts" test files for the new pipe.

Value TypebooleanDefaultfalse
standalone

Whether the generated pipe is standalone.

Value TypebooleanDefaulttrue
Jump to details