Constructors
constructor
- new Router(root?: string, useHash?: boolean, hash?: string): Router
-
Parameters
-
Optional root: string
-
Optional useHash: boolean
-
Optional hash: string
Methods
build
- build<Route>(routes: Route[], builder: function, parentPath?: string | null, rootElement?: Element, extraParams?: any): void
-
Type parameters
Parameters
-
routes: Route[]
-
builder: function
-
- (route: Route, params: Params, query: string, rootElement?: Element, extraParams?: any): void
-
Parameters
-
route: Route
-
-
query: string
-
Optional rootElement: Element
-
Optional extraParams: any
Returns void
-
Optional parentPath: string | null
-
Optional rootElement: Element
-
Optional extraParams: any
Returns void