Type alias RouterConfig<T>

RouterConfig<T>: {
    rootPath?: string;
    routeConfig: RouteConfig<T>;
    wdw?: WindowLike;
}

Configuration to create a router.

Type Parameters

  • T extends string = string

    See RouteConfig for details.

Type declaration

  • Optional rootPath?: string

    If specified, uses history mode instead of hash mode. To use history mode, you need to provide server side router support. The root path is the URL path leading up to the root of your application. For example, if the URL of your application is https://my.domain.com/apps/myapp then the root path is /apps/myapp. If your application is at https://my.domain.com then simply specify an empty string, '', as the root path.

  • routeConfig: RouteConfig<T>

    The route configuration. See the documentation for RouteConfig for details.

  • Optional wdw?: WindowLike

    Do not use this, it is for internal testing purposes only.

Generated using TypeDoc