mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-20 21:42:38 +08:00
248 B
248 B
ng generate guard
Overview
ng generate guard [name]
generates a guard
Options
--flat
flag to indicate if a dir is created
--spec
specifies if a spec file is generated
--module
(-m
) allows specification of the declaring module