MsalGuard class

屬性

ɵfac
ɵprov

建構函式詳細資料

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

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

參數

msalGuardConfig
MsalGuardConfiguration
msalBroadcastService
MsalBroadcastService
authService
MsalService
location

Location

router

Router

屬性詳細資料

ɵfac

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

屬性值

ɵɵFactoryDeclaration<MsalGuard, never>

ɵprov

static ɵprov: ɵɵInjectableDeclaration<MsalGuard>

屬性值

ɵɵInjectableDeclaration<MsalGuard>

方法詳細資料

canActivate(ActivatedRouteSnapshot, RouterStateSnapshot)

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

參數

route

ActivatedRouteSnapshot

state

RouterStateSnapshot

傳回

Observable<any>

canActivateChild(ActivatedRouteSnapshot, RouterStateSnapshot)

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

參數

route

ActivatedRouteSnapshot

state

RouterStateSnapshot

傳回

Observable<any>

canMatch()

function canMatch(): Observable<any>

傳回

Observable<any>

getDestinationUrl(string)

建立目的地頁面的絕對網址

function getDestinationUrl(path: string): string

參數

path

string

請求頁面的相對路徑

傳回

string

完整目的地網址

includesCode(string)

function includesCode(path: string): boolean

參數

path

string

傳回

boolean

parseUrl(string)

解析 URL 字串至 UrlTree

function parseUrl(url: string): UrlTree

參數

url

string

傳回

UrlTree