📄
BoltUI Docs (Preview)
  • Getting Started
    • Introduction
    • Installing Bolt
    • Hello World
  • Understanding Bolt
    • Creating UI
    • Components
    • Properties & Events
    • Styles
    • Custom Components
    • Reactivity
    • Component Lifecycle
    • Routing
  • API Reference
    • index
      • State
      • Component
      • render
      • attribute
      • event
      • onLoad
      • onRemove
      • id
      • Class
      • When
    • components
      • Link
      • AppLink
      • GenericElement
    • events
      • onGenericEvent
    • boltrouter
      • Router
      • AppRouter
      • Url
      • Navigate
      • AppNavigator
  • Future
    • Server Side Rendering
    • Multi-Platform
Powered by GitBook
On this page
  • Definition
  • Input
  • Returns HTMLElement
  1. API Reference
  2. boltrouter

AppRouter

Client side no-reload router

PreviousRouterNextUrl

Last updated 2 years ago

Definition

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

Input

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

  • urlNodes : a list of 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

url()