Private basePrivate containerthe container component
Private currentPrivate idthe id to place the routed content
Private routesthe routes
Private selectedCreates an instance of WebzRouter.
the container component
the routes
the id to place the routed content
WebzRouter
const router = new WebzRouter(container, [
{ path: "/", component: new Home() },
{ path: "/about", component: new About() },
{ path: "/contact", component: new Contact() },
], "content");
@description: Routes to a path
the path to route to
WebzRouter
const router = new WebzRouter(container, [
{ path: "/", component: new Home() },
{ path: "/about", component: new About() },
{ path: "/contact", component: new Contact() },
], "content");
router.route("/about");
Generated using TypeDoc
@description: A router
Export
WebzRouter