export class loginGuard implements CanActivate {
constructor(public auth: AuthService, public router: Router) {}
canActivate(): boolean {
if (!this.auth.isAuthenticated()) {
return true;
} else if {
this.router.navigate(['/map']);
return false;
}
}