Angular CLI Basics - ng generate guard

ng generate guard Exercise


In the exercise for this section, you should create two guards:

  • An auth guard contained in its own folder, selecting the interface or interfaces from the CLI prompt
  • An admin guard that implements the CanActivate interface using the --implements flag