mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 03:23:57 +08:00
595 B
595 B
ng generate directive
Overview
ng generate directive [name]
generates a directive
Options
--app
Specifies app name or index to use.
--export
Specifies if declaring module exports the component.
--flat
Flag to indicate if a dir is created.
--module
(-m
) Allows specification of the declaring module.
--prefix
Specifies whether to use the prefix.
--skip-import
Allows for skipping the module import.
--spec
Specifies if a spec file is generated.