Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Router

Index

Constructors

constructor

  • new Router(context: Context): Router

Properties

Private _histories

_histories: History[] = []

Private context

context: Context

Private gobackState

gobackState: boolean = false

isBackState

isBackState: boolean = false

back 이동 상태인지 여부

Private popStateDetected

popStateDetected: boolean = false

Accessors

histories

  • get histories(): History[]
  • set histories(histories: History[]): void

Methods

back

  • back(forceRefresh?: boolean): void

getRouteUrl

  • getRouteUrl(url: string): string

getUrlRoutes

  • getUrlRoutes(url: string): void

Private init

  • init(): void

Private isEqual

  • isEqual(route1: any, route2: any): boolean

Private isEqualCurrentPath

  • isEqualCurrentPath(route: any): boolean

push

  • push(route: any, forceRefresh?: boolean, includeHistory?: boolean): Promise<void>
  • 라우터 이동

    Parameters

    • route: any

      이동 라우터 정보

    • Default value forceRefresh: boolean = true

      강제 리프레시 여부

    • Default value includeHistory: boolean = true

      히스토리 포함여부

    Returns Promise<void>

reload

  • reload(): void

replace

  • replace(route: any, forceRefresh?: boolean): void

Object literals

Private history

history: object

includeHistory

includeHistory: boolean = true

add

  • add(to: Route, from: Route): void

clear

  • clear(): void

lastHistory

remove

  • remove(_to: Route, from: Route): void

removeCurrentSameRouteHistory

  • removeCurrentSameRouteHistory(): void