MsalGuard class

Vlastnosti

ɵfac
ɵprov

Podrobnosti konstruktoru

MsalGuard(MsalGuardConfiguration, MsalBroadcastService, MsalService, Location, Router)

new MsalGuard(msalGuardConfig: MsalGuardConfiguration, msalBroadcastService: MsalBroadcastService, authService: MsalService, location: Location, router: Router)

Parametry

msalGuardConfig
MsalGuardConfiguration
msalBroadcastService
MsalBroadcastService
authService
MsalService
location

Location

router

Router

Podrobnosti vlastnosti

ɵfac

static ɵfac: ɵɵFactoryDeclaration<MsalGuard, never>

Hodnota vlastnosti

ɵɵFactoryDeclaration<MsalGuard, never>

ɵprov

static ɵprov: ɵɵInjectableDeclaration<MsalGuard>

Hodnota vlastnosti

ɵɵInjectableDeclaration<MsalGuard>

Podrobnosti metody

canActivate(ActivatedRouteSnapshot, RouterStateSnapshot)

function canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<any>

Parametry

route

ActivatedRouteSnapshot

state

RouterStateSnapshot

Návraty

Observable<any>

canActivateChild(ActivatedRouteSnapshot, RouterStateSnapshot)

function canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<any>

Parametry

route

ActivatedRouteSnapshot

state

RouterStateSnapshot

Návraty

Observable<any>

canMatch()

function canMatch(): Observable<any>

Návraty

Observable<any>

getDestinationUrl(string)

Vytvoří absolutní adresu URL cílové stránky.

function getDestinationUrl(path: string): string

Parametry

path

string

Relativní cesta požadované stránky

Návraty

string

Úplná cílová adresa URL

includesCode(string)

function includesCode(path: string): boolean

Parametry

path

string

Návraty

boolean

parseUrl(string)

Parsuje řetězec adresy URL na adresu UrlTree.

function parseUrl(url: string): UrlTree

Parametry

url

string

Návraty

UrlTree