Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthGuardService

The Auth guard service. Used to determine if the user can access the desierd routes.

Hierarchy

  • AuthGuardService

Implements

  • CanActivate
  • CanActivateChild

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

auth

The authService

router

router: Router

The router

Methods

canActivate

  • canActivate(route: ActivatedRouteSnapshot): Promise<boolean>
  • Return true if the current user can navigate the given route, false otherwise

    Parameters

    • route: ActivatedRouteSnapshot

      The route the user is navigating to

    Returns Promise<boolean>

canActivateChild

  • canActivateChild(route: ActivatedRouteSnapshot): Promise<boolean>
  • Return true if the current user can navigate the children of the route, false otherwise

    Parameters

    • route: ActivatedRouteSnapshot

      The route the user is navigating to

    Returns Promise<boolean>

Generated using TypeDoc