GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(client): add auth-guard service · angular-fullstack/generator-angular-fullstack@a5cbada

This repository was archived by the owner on Jul 29, 2026. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • templates/app/client/components/auth(auth)
    • auth-guard.service.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎templates/app/client/components/auth(auth)/auth-guard.service.js‎

Copy file name to clipboard
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Injectable } from '@angular/core';
2+
import { CanActivate } from '@angular/router';
3+
4+
import { AuthService } from './auth.service';
5+
6+
@Injectable()
7+
export class AuthGuard implements CanActivate {
8+
static parameters = [AuthService];
9+
constructor(authService: AuthService) {
10+
this.authService = authService;
11+
}
12+
13+
canActivate() {
14+
return this.authService.isLoggedIn();
15+
}
16+
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.