Angular authentication revisited
Gábor Soós
46844

ok found it, trivial…

canActivate() {
 if (this.user.isLoggedIn()) {
 return true;
 }

this.router.navigate([‘login’]);
 return false;
 }

Like what you read? Give Aurélien Le Grand a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.