Angular
Angular CLI Basics - ng generate guard
  •  

ng generate guard Exercise

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

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
 

I finished! On to the next chapter