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 Type
string
Options
export
The declaring NgModule exports this pipe.
Value Type
boolean
Defaultfalse
flat
When true (the default) creates files at the top level of the project.
Value Type
boolean
Defaulttrue
module
Alias
m
The declaring NgModule.
Value Type
string
project
The name of the project.
Value Type
string
skip-import
Do not import this pipe into the owning NgModule.
Value Type
boolean
Defaultfalse
skip-tests
Do not create "spec.ts" test files for the new pipe.
Value Type
boolean
Defaultfalse
standalone
Whether the generated pipe is standalone.
Value Type
boolean
Defaulttrue
Jump to details