this.gui
Preparing search index...
Router
Class Router
SPA navigation kernel for declarative specs.
Runtime is optional (semantic pointers only resolve when runtime.resolve exists).
Supports sync/async route factories.
Emits
onChange
notifications to decoupled renderers.
Index
Constructors
constructor
Properties
base
Path
current
Path
not
Found
runtime
Methods
destroy
get
go
href
mount
navigate
on
Change
resolve
set
start
Constructors
constructor
new
Router
(
__namedParameters
?:
{
basePath
?:
string
;
notFound
?:
NotFoundHandler
;
runtime
?:
RouterRuntime
|
null
;
useHistory
?:
boolean
;
}
,
)
:
Router
Parameters
__namedParameters
:
{
basePath
?:
string
;
notFound
?:
NotFoundHandler
;
runtime
?:
RouterRuntime
|
null
;
useHistory
?:
boolean
;
}
= {}
Returns
Router
Properties
base
Path
basePath
:
string
current
Path
currentPath
:
string
|
null
= null
not
Found
notFound
:
NotFoundHandler
runtime
runtime
:
RouterRuntime
|
null
Methods
destroy
destroy
()
:
void
Returns
void
get
get
(
path
:
string
,
handler
:
any
)
:
this
Parameters
path
:
string
handler
:
any
Returns
this
go
go
(
path
:
string
,
ctx
?:
Record
<
string
,
any
>
)
:
Promise
<
any
>
Parameters
path
:
string
ctx
:
Record
<
string
,
any
>
= {}
Returns
Promise
<
any
>
href
href
(
path
:
string
)
:
string
Parameters
path
:
string
Returns
string
mount
mount
(
target
:
MountTarget
,
options
?:
RouterMountOptions
)
:
this
Parameters
target
:
MountTarget
options
:
RouterMountOptions
= {}
Returns
this
navigate
navigate
(
path
:
string
,
__namedParameters
?:
RouterNavigateOptions
)
:
Promise
<
any
>
Parameters
path
:
string
__namedParameters
:
RouterNavigateOptions
= {}
Returns
Promise
<
any
>
on
Change
onChange
(
listener
:
RouterChangeListener
)
:
()
=>
void
Parameters
listener
:
RouterChangeListener
Returns
()
=>
void
resolve
resolve
(
path
:
string
,
ctx
?:
Record
<
string
,
any
>
)
:
Promise
<
any
>
Parameters
path
:
string
ctx
:
Record
<
string
,
any
>
= {}
Returns
Promise
<
any
>
set
set
(
path
:
string
,
handler
:
any
)
:
this
Parameters
path
:
string
handler
:
any
Returns
this
start
start
(
path
?:
string
,
ctx
?:
Record
<
string
,
any
>
)
:
Promise
<
any
>
Parameters
path
:
string
= "/"
ctx
:
Record
<
string
,
any
>
= {}
Returns
Promise
<
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
base
Path
current
Path
not
Found
runtime
Methods
destroy
get
go
href
mount
navigate
on
Change
resolve
set
start
this.gui
Loading...
SPA navigation kernel for declarative specs.
onChangenotifications to decoupled renderers.