Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PageHandler

Hierarchy

  • RouteRecognizer
    • PageHandler

Index

Constructors

  • Returns PageHandler

Properties

#private: any
delegate: Delegate
map: ((context: MatchCallback, addCallback?: ((router: PageHandler, routes: Route[]) => void)) => void)

Type declaration

    • (context: MatchCallback, addCallback?: ((router: PageHandler, routes: Route[]) => void)): void
    • Parameters

      • context: MatchCallback
      • Optional addCallback: ((router: PageHandler, routes: Route[]) => void)

      Returns void

recognizer: RouteRecognizer
ENCODE_AND_DECODE_PATH_SEGMENTS: boolean
Normalizer: { encodePathSegment: any; normalizePath: any; normalizeSegment: any }

Type declaration

  • encodePathSegment:function
    • encodePathSegment(str: string): string
    • Parameters

      • str: string

      Returns string

  • normalizePath:function
    • normalizePath(path: string): string
    • Parameters

      • path: string

      Returns string

  • normalizeSegment:function
    • normalizeSegment(segment: string): string
    • Parameters

      • segment: string

      Returns string

VERSION: string

Methods

  • add(routes: Route[], options?: { as: string }): void
  • Parameters

    • routes: Route[]
    • Optional options: { as: string }
      • as: string

    Returns void

  • generate(name: string, params?: Params): string
  • Parameters

    • name: string
    • Optional params: Params

    Returns string

  • generateQueryString(params: QueryParams): string
  • Parameters

    • params: QueryParams

    Returns string

  • handlersFor(name: string): any[]
  • Parameters

    • name: string

    Returns any[]

  • hasRoute(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

  • parseQueryString(queryString: string): QueryParams
  • Parameters

    • queryString: string

    Returns QueryParams

  • recognize(path: string): Results
  • Parameters

    • path: string

    Returns Results

  • Define the endpoint of the page

    Parameters

    Returns Page

Generated using TypeDoc