Class for checking if a User has permission to access the Component at the URL they have visited

Hierarchy

  • AuthenticationGuard

Implements

  • CanActivate

Constructors

Properties

Methods

Constructors

Properties

authenticationService: AuthenticationService

AuthenticationService for checking if user is logged in

router: Router

Router for redirecting User to web pages

Methods

  • Check is a user is logged in when they try to access a URL that requires being logged in

    Returns

    True if User is logged in. Else redirects User to '/login' web page.

    Parameters

    • route: ActivatedRouteSnapshot
    • state: RouterStateSnapshot

    Returns boolean

Generated using TypeDoc