MsalGuard class

Özellikler

ɵfac
ɵprov

Oluşturucu Ayrıntıları

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

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

Parametreler

msalGuardConfig
MsalGuardConfiguration
msalBroadcastService
MsalBroadcastService
authService
MsalService
location

Location

router

Router

Özellik Ayrıntıları

ɵfac

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

Özellik Değeri

ɵɵFactoryDeclaration<MsalGuard, never>

ɵprov

static ɵprov: ɵɵInjectableDeclaration<MsalGuard>

Özellik Değeri

ɵɵInjectableDeclaration<MsalGuard>

Yöntem Ayrıntıları

canActivate(ActivatedRouteSnapshot, RouterStateSnapshot)

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

Parametreler

route

ActivatedRouteSnapshot

state

RouterStateSnapshot

Döndürülenler

Observable<any>

canActivateChild(ActivatedRouteSnapshot, RouterStateSnapshot)

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

Parametreler

route

ActivatedRouteSnapshot

state

RouterStateSnapshot

Döndürülenler

Observable<any>

canMatch()

function canMatch(): Observable<any>

Döndürülenler

Observable<any>

getDestinationUrl(string)

Hedef sayfanın mutlak URL'sini oluşturur

function getDestinationUrl(path: string): string

Parametreler

path

string

İstenen sayfanın göreli yolu

Döndürülenler

string

Tam hedef URL

includesCode(string)

function includesCode(path: string): boolean

Parametreler

path

string

Döndürülenler

boolean

parseUrl(string)

Url dizesini UrlTree olarak ayrıştırıyor

function parseUrl(url: string): UrlTree

Parametreler

url

string

Döndürülenler

UrlTree