generate pipe
Command
ng generate pipeng generate pCreates a new, generic pipe definition in the given project.
Arguments
nameThe name of the pipe.
Value Type
stringOptions
exportThe declaring NgModule exports this pipe.
Value Type
booleanDefaultfalseflatWhen true (the default) creates files at the top level of the project.
Value Type
booleanDefaulttruemoduleAlias
m The declaring NgModule.
Value Type
stringprojectThe name of the project.
Value Type
stringskip-importDo not import this pipe into the owning NgModule.
Value Type
booleanDefaultfalseskip-testsDo not create "spec.ts" test files for the new pipe.
Value Type
booleanDefaultfalsestandaloneWhether the generated pipe is standalone.
Value Type
booleanDefaulttrueJump to details