Home Reference Source Test
public class | source

Route

Direct Subclass:

Router

Route implementation

Static Method Summary

Static Public Methods
public static

of(param: RouteParams): Route

Static helper method to create a new instance of Route

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

Helper method to return excat path of the component

Method Summary

Public Methods
public

build(match: RouteMatch, state: RouteState, router: Router, view: Page): *

Builds a route's view

public

Clones new instance of the route

public

Clones route's path and returns

public

Returns redirection path

public

Returns route path as string

public

Route has a path

public

matchPath(url: string): Match

Queries if specified url match to the route path

public

Triggered before when an exact match happends.

public
public

String presentation of the component

Static Public Methods

public static of(param: RouteParams): Route source

Static helper method to create a new instance of Route

Params:

NameTypeAttributeDescription
param RouteParams

Return:

Route

Public Constructors

public constructor(param: RouteParams) source

Params:

NameTypeAttributeDescription
param RouteParams

Public Members

public get routePath: string: * source

Helper method to return excat path of the component

Return:

string

Public Methods

public build(match: RouteMatch, state: RouteState, router: Router, view: Page): * source

Builds a route's view

Params:

NameTypeAttributeDescription
match RouteMatch
state RouteState
router Router
view Page

Return:

*

public clone(): Route source

Clones new instance of the route

Return:

Route

public getPath(): RoutePath source

Clones route's path and returns

Return:

RoutePath

public getRedirectto(): string source

Returns redirection path

Return:

string

public getUrlPath(): string source

Returns route path as string

Return:

string

public hasPath(): boolean source

Route has a path

Return:

boolean

public matchPath(url: string): Match source

Queries if specified url match to the route path

Params:

NameTypeAttributeDescription
url string

Return:

Match

public onPrematch(match: RouteMatch): boolean source

Triggered before when an exact match happends. If the onBeforeMatch eventhandler is set and onBeforeMatch returns 'true' then match happends or onBeforeMatch returns 'false' then match is blocked

Params:

NameTypeAttributeDescription
match RouteMatch

Return:

boolean

public toObject(): Object source

Return:

Object

public toString(): string source

String presentation of the component

Return:

string