Properties
Private defaultProps
defaultProps: any
Private element
element: Element
Private hash
hash: string
Private root
root: string
Private useHash
useHash: boolean
Methods
Private build
- build(configRouters: IRouters[], parentPath?: string): void
-
Parameters
-
configRouters: IRouters[]
-
Optional parentPath: string
Returns void
Private checkQuery
- checkQuery(query: string): string
-
Parameters
Returns string
Private checkState
- checkState(query: string): string | object
-
Parameters
Returns string
|
object
Private createRootElement
- createRootElement(): void
go
- go(path: string, state?: any | null, absolute?: boolean): void
-
Parameters
-
path: string
-
Optional state: any | null
-
Optional absolute: boolean
Returns void
resolve
- resolve(currentUrl?: string): void
-
Parameters
-
Optional currentUrl: string
Returns void
Private setPatch
- setPatch(route: IRouters, params: object, query: string): void
-
Parameters
-
-
params: object
-
query: string
Returns void
Router class handle whole the router config for single page application. It use Navigo
Navigo