> For the complete documentation index, see [llms.txt](https://creatorlabs.gitbook.io/boltui-docs-preview/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://creatorlabs.gitbook.io/boltui-docs-preview/api-reference/boltrouter/approuter.md).

# AppRouter

Client side no-reload router

### Definition

```javascript
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 [url()](/boltui-docs-preview/api-reference/boltrouter/url.md) 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
