mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 11:03:53 +08:00
1006 B
1006 B
ng generate guard
Overview
ng generate guard [name]
generates a guard
Options
dry-run
--dry-run
(alias: -d
)
Run through without making any changes.
force
--force
(alias: -f
)
Forces overwriting of files.
spec
--spec
Specifies if a spec file is generated.
flat
--flat
Flag to indicate if a dir is created.
module
--module
(alias: -m
)
Allows specification of the declaring module.
project
--project
The name of the project.