Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Router

Hierarchy

  • Router

Index

Properties

Private routeMatchers

routeMatchers: Array<RouteMatcher> = []

Private routes

routes: {}

Type declaration

Methods

batchRegister

  • batchRegister(options: any): void

getRoutes

  • getRoutes(): {}

gotoPage

  • gotoPage(pathOrRoute: CommonParams["path"], query: CommonParams["query"]): Promise<any>
  • Parameters

    • pathOrRoute: CommonParams["path"]
    • query: CommonParams["query"]

    Returns Promise<any>

Private matchRoute

  • matchRoute(pathOrRoute: any): { params: {}; path: any }
  • Parameters

    • pathOrRoute: any

    Returns { params: {}; path: any }

    • params: {}
    • path: any

navigateBack

  • navigateBack(query: { delta: number }, option?: { setData: Record<string, unknown> }): Promise<unknown>
  • Parameters

    • query: { delta: number }
      • delta: number
    • Optional option: { setData: Record<string, unknown> }
      • setData: Record<string, unknown>

    Returns Promise<unknown>

navigateTo

  • navigateTo(pathOrRoute: CommonParams["path"], query: CommonParams["query"]): Promise<any>
  • Parameters

    • pathOrRoute: CommonParams["path"]
    • query: CommonParams["query"]

    Returns Promise<any>

redirectTo

  • redirectTo(pathOrRoute: CommonParams["path"], query: CommonParams["query"]): Promise<unknown>
  • Parameters

    • pathOrRoute: CommonParams["path"]
    • query: CommonParams["query"]

    Returns Promise<unknown>

register

switchTab

  • switchTab(pathOrRoute: CommonParams["path"], query: CommonParams["query"]): Promise<unknown>
  • Parameters

    • pathOrRoute: CommonParams["path"]
    • query: CommonParams["query"]

    Returns Promise<unknown>

Generated using TypeDoc