import { css, html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; /** Example second route. */ @customElement('about-page') export class AboutPage extends LitElement { static override styles = css` :host { display: block; } h1 { margin: 0 0 1rem; font-size: 1.75rem; letter-spacing: -0.02em; } p { margin: 0 0 1rem; color: var(--app-color-muted, #63636b); } ul { margin: 0; padding-left: 1.1rem; color: var(--app-color-muted, #63636b); } li { margin-bottom: 0.4rem; } `; override render() { return html`
This route is rendered by the router controller in
app-root. Add a route by extending the array passed to
new Router(...).
/users/:id works.params argument.Routes for nested routing inside a page.