Pipe generator
Pipe generator
This is the documentation for Angular 6.
You can switch to the latest version Angular 8.
You can switch to the latest version Angular 8.
ng generate pipe [name] [--[argument]=[value]]
ng generate p
Create an Angular pipe.
Options
project
#
The name of the project.
Type | string |
flat
#
Flag to indicate if a dir is created.
Type | boolean |
Default | true |
spec
#
Specifies if a spec file is generated.
Type | boolean |
Default | true |
skipImport
#
Allows for skipping the module import.
Type | boolean |
Default | false |
module
#
Allows specification of the declaring module.
Type | string |
Aliases | m |
export
#
Specifies if declaring module exports the pipe.
Type | boolean |
Default | false |
lintFix
#
Specifies whether to apply lint fixes after generating the pipe.
Type | boolean |
Default | false |