Browse documentation

mountRouter

Uses a Router as the mounted navigation root.

Table of contents

Category

Value

Import

js
import { mountRouter } from "valyrian.js/router";

Public signature

ts
(elementContainer: string | any, router: Router): void

Parameters

ts
elementContainer: string | any, router: Router

Result

ts
void

Observable effects

Mounts the router on the target and starts route resolution.