20 lines
544 B
Markdown

<!-- Links in /docs/documentation should NOT have `.md` at the end, because they end up in our wiki at release. -->
# ng generate directive
## Overview
`ng generate directive [name]` generates a directive
## Options
`--flat` flag to indicate if a dir is created
`--prefix` specifies whether to use the prefix
`--spec` specifies if a spec file is generated
`--skip-import` allows for skipping the module import
`--module` (`-m`) allows specification of the declaring module
`--export` specifies if declaring module exports the directive