AppRouter
Client side no-reload router
Definition
function AppRouter(root_url: String, ...urlNodes: Url) {
return HTMLElement
}
Input
root_url
: the base url on which the routing will take placeurlNodes
: 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