Router

Full-Reload SSR Router

Definition

function Router(root_url: String, ...urlNodes: Url) {
    return HTMLElement
}

Input

  • root_url : the base url on which the routing will take place

  • urlNodes : a list of url() function that takes sub-url and callbacks to route to those components

Returns HTMLElement

Assignes components to specific urls and builds a changable interface to change the DOM to the corresponding view and then returns a div in which all the child view are stored

Last updated