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 |
constructor(param: RouteParams) |
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 |
getUrlPath(): string Returns route path as string |
|
public |
Route has a path |
|
public |
Queries if specified url match to the route path |
|
public |
onPrematch(match: RouteMatch): boolean 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:
Name | Type | Attribute | Description |
param | RouteParams |
Public Constructors
public constructor(param: RouteParams) source
Params:
Name | Type | Attribute | Description |
param | RouteParams |
Public Members
Public Methods
public build(match: RouteMatch, state: RouteState, router: Router, view: Page): * source
Builds a route's view
Params:
Name | Type | Attribute | Description |
match | RouteMatch | ||
state | RouteState | ||
router | Router | ||
view | Page |
Return:
* |
public matchPath(url: string): Match source
Queries if specified url match to the route path
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
match | RouteMatch |