mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +08:00
544 B
544 B
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