class AppComponent extends LitElement {
private router = new Router(this, [
{ path: "/", render: () => html`<x-home-component></x-home-component>` },
{ path: "/article/:id", render: ({ id }) => html`<div>value of id is ${id}</div>` }
])
protected render(): unknown {
return this.router.renderOutlet()
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
yevmel/simple-lit-router
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
simple router for Lit apps.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published