Guard generator
This is the documentation for Angular 6.
You can switch to the latest version Angular 10.
You can switch to the latest version Angular 10.
ng generate guard [name] [--[argument]=[value]]
ng generate g
Create a guard.
Options
--spec
#
Type | boolean |
Default | true |
--flat
#
Type | boolean |
Default | true |
--project
#
Type | string |
--lintFix
#
Type | boolean |
Default | false |