Pipe generator
ng generate pipe [name] [--[argument]=[value]]
ng generate p
Create an Angular pipe.
Options
--export
#
Specifies if declaring module exports the pipe.
Type | boolean |
Default | false |
--flat
#
Flag to indicate if a dir is created.
Type | boolean |
Default | true |
--lintFix
#
Specifies whether to apply lint fixes after generating the pipe.
Type | boolean |
Default | false |
--module
#
Allows specification of the declaring module.
Type | string |
Aliases | m |
--project
#
The name of the project.
Type | string |
--skipImport
#
Allows for skipping the module import.
Type | boolean |
Default | false |
--skipTests
#
When true, does not create spec.ts
test files for the new pipe.
Type | boolean |
Default | false |