Header menu logo Navs

Route Type

Static members

Static member Description

Route.define (name, path, handler)

Full Usage: Route.define (name, path, handler)

Parameters:
    name : string - The name of the route
    path : string - A templated URL that will be used to match this route
    handler : RouteContext -> INavigable<IView> -> 'a - The view to render when the route is activated

Returns: RouteDefinition<IView> A route definition

Defines a route in the application

name : string

The name of the route

path : string

A templated URL that will be used to match this route

handler : RouteContext -> INavigable<IView> -> 'a

The view to render when the route is activated

Returns: RouteDefinition<IView>

A route definition

Route.define (name, path, handler)

Full Usage: Route.define (name, path, handler)

Parameters:
    name : string - The name of the route
    path : string - A templated URL that will be used to match this route
    handler : RouteContext -> INavigable<IView> -> CancellationToken -> Task<'a> - An task returning function to render when the route is activated.

Returns: RouteDefinition<IView> A route definition

Defines a route in the application

A cancellation token is provided alongside the route context to allow you to support cancellation of the route activation.

name : string

The name of the route

path : string

A templated URL that will be used to match this route

handler : RouteContext -> INavigable<IView> -> CancellationToken -> Task<'a>

An task returning function to render when the route is activated.

Returns: RouteDefinition<IView>

A route definition

Route.define (name, path, handler)

Full Usage: Route.define (name, path, handler)

Parameters:
    name : string - The name of the route
    path : string - A templated URL that will be used to match this route
    handler : RouteContext -> INavigable<IView> -> Async<'a> - The view to render when the route is activated

Returns: RouteDefinition<IView> A route definition

Defines a route in the application

name : string

The name of the route

path : string

A templated URL that will be used to match this route

handler : RouteContext -> INavigable<IView> -> Async<'a>

The view to render when the route is activated

Returns: RouteDefinition<IView>

A route definition

Type something to start searching.