Route Type
Static members
Static member | Description |
Full Usage:
Route.define (name, path, handler)
Parameters:
string
-
The name of the route
path : string
-
A templated URL that will be used to match this route
handler : RouteContext -> INavigable<Control> -> 'a
-
The view to render when the route is activated
Returns: RouteDefinition<Control>
A route definition
|
|
Full Usage:
Route.define (name, path, handler)
Parameters:
string
-
The name of the route
path : string
-
A templated URL that will be used to match this route
handler : RouteContext -> INavigable<Control> -> CancellationToken -> Task<'a>
-
An task returning function to render when the route is activated.
Returns: RouteDefinition<Control>
A route definition
|
A cancellation token is provided alongside the route context to allow you to support cancellation of the route activation.
|
Full Usage:
Route.define (name, path, handler)
Parameters:
string
-
The name of the route
path : string
-
A templated URL that will be used to match this route
handler : RouteContext -> INavigable<Control> -> Async<'a>
-
The view to render when the route is activated
Returns: RouteDefinition<Control>
A route definition
|
|