mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 06:41:45 +08:00
19 lines
525 B
Markdown
19 lines
525 B
Markdown
<!-- Links in /docs/documentation should NOT have `.md` at the end, because they end up in our wiki at release. -->
|
|
|
|
# ng generate pipe
|
|
|
|
## Overview
|
|
`ng generate pipe [name]` generates a pipe
|
|
|
|
## Options
|
|
`--app` Specifies app name or index to use.
|
|
|
|
`--export` Specifies if declaring module exports the pipe.
|
|
|
|
`--flat` Flag to indicate if a dir is created.
|
|
|
|
`--module` (`-m`) Allows specification of the declaring module.
|
|
|
|
`--skip-import` Allows for skipping the module import.
|
|
|
|
`--spec` Specifies if a spec file is generated. |