Home Reference Source
import {HistoryRouter} from '@tilfin/flatout/src/app/router.js'
private class | source

HistoryRouter

Extends:

Router → HistoryRouter

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Method Summary

Public Methods
public

depart()

public

go(path: *)

Private Methods
private

Inherited Summary

From class Router
public

onMove: *

private
private
public

canGo(path: *): *

Need call depart after first page loaded

public

getRoute(absPath: *): Object

public

move(path: String)

Need call go when History mode and anchor tag clicked or moving the other page by a script

private

_chopEndSlash(pt: *): *

private

_isStr(v: *): *

private

_parsePath(path: *): *

private

_parseRoute(map: *): *

private

_resolve(src: *, dest: *): *

Public Constructors

public constructor() source

Override:

Router#constructor

Public Members

public basePath: * source

Public Methods

public depart() source

public go(path: *) source

Params:

NameTypeAttributeDescription
path *

Private Methods

private _captureClick(e: *) source

Params:

NameTypeAttributeDescription
e *