Let us
extent our Angular Routs example and add some route guards to the example. Let
us add the most basic route guard CanActivate
to the example. Let us begin by adding 2 services auth service and a
route-guard service as follows.
ng g s auth
ng g s
route-guard