Documentation
Preparing search index...
@webly/router
router
Router
Class Router
Index
Constructors
constructor
Methods
navigate
routes
start
Constructors
constructor
new
Router
(
root
:
HTMLElement
)
:
Router
Parameters
root
:
HTMLElement
Returns
Router
Methods
navigate
navigate
(
path
:
`
/
${
string
}
`
,
data
?:
unknown
,
type
?:
"replace"
|
"push"
|
"none"
|
"back"
,
)
:
void
Parameters
path
:
`
/
${
string
}
`
data
:
unknown
= null
type
:
"replace"
|
"push"
|
"none"
|
"back"
= "push"
Returns
void
routes
routes
(
routes
:
Routes
)
:
Router
Parameters
routes
:
Routes
Returns
Router
start
start
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
navigate
routes
start
Documentation
Loading...