Home Reference Source Repository
import {Router} from 'protium/src/router.js'
public class | source

Router

Static Method Summary

Static Public Methods
public static

asyncRenderer(props: *): *

Constructor Summary

Public Constructor
public

constructor(opts: *)

Member Summary

Public Members
public

options: *

public

routes: *

Method Summary

Public Methods
public
public

createMatchOptions(routes: *, history: *, http: *): *

public

getComponent(renderProps: *, http: *): *

public

getMiddleware(history: *): *

public
public

getRoutes(store: *): *

public

match(history: *, store: *, http: *, callback: *)

public

registerStore(history: *, store: *): *

Static Public Methods

public static asyncRenderer(props: *): * source

Params:

NameTypeAttributeDescription
props *

Return:

*

Public Constructors

public constructor(opts: *) source

Params:

NameTypeAttributeDescription
opts *

Public Members

public options: * source

public routes: * source

Public Methods

public createHistory(): * source

Return:

*

public createMatchOptions(routes: *, history: *, http: *): * source

Params:

NameTypeAttributeDescription
routes *
history *
http *

Return:

*

public getComponent(renderProps: *, http: *): * source

Params:

NameTypeAttributeDescription
renderProps *
http *

Return:

*

public getMiddleware(history: *): * source

Params:

NameTypeAttributeDescription
history *

Return:

*

public getReducers(): * source

Return:

*

public getRoutes(store: *): * source

Params:

NameTypeAttributeDescription
store *

Return:

*

public match(history: *, store: *, http: *, callback: *) source

Params:

NameTypeAttributeDescription
history *
store *
http *
callback *

public registerStore(history: *, store: *): * source

Params:

NameTypeAttributeDescription
history *
store *

Return:

*