Skip to main content

All Questions

0 votes
1 answer
510 views

canActivate needs to wait for boolean of this.authService.isLoggedIn

I want my app to route to home : "" when the user logs in with their google email. Everything works except the canActivate routeGuard. this.authService.isLoggedIn returns false after I try ...
artworkjpm's user avatar
  • 1,337
0 votes
1 answer
364 views

Why my object become empty when I reach a specific route?

I have a problem. So, I want to create a route guard in Angular that doesn't allow the user to reach login page if he is logged in. I check if he is logged in if the BehaviourSubject from the ...
DoboVlad's user avatar
0 votes
1 answer
697 views

Errors while implementing Angular 8 Route (Auth) Guards

So I was trying to implement Route Guards for my webapp but came into a lot of errors. What did I do wrong? My webapp consists of multiple routes, one of which is dashboard, which needs to be ...
Munchkin's user avatar
  • 1,075