Router
@akhaled01/void • Docs
@akhaled01/void / router / Router
Class: Router
The Router class to handle client-side routing and rendering of pages using a virtual DOM approach.
Constructors
new Router()
new Router():
Router
Initializes the Router instance, sets up event listeners, and extends HTMLElement and Document prototypes with custom event methods.
Returns
Defined in
Properties
currentVNode
currentVNode:
VNode
Store the current virtual DOM node
Defined in
pageContext
pageContext:
RequireContext
Context for dynamic imports of page components
Defined in
root
root:
HTMLElement
The root element where pages will be rendered
Defined in
stylesheetRef
stylesheetRef:
HTMLLinkElement
Reference to the <link>
element for stylesheets