import { Router } from '@vaadin/router'; import { css, html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; import { routes } from './app-routing.js'; @customElement('app-root') export default class App extends LitElement { static styles = css` router-outlet { width: 100%; } .outer-wrapper { display: flex; justify-content: center; height: 100%; } `; render() { return html`
`; } firstUpdated() { const outlet = this.shadowRoot?.querySelector('router-outlet'); const router = new Router(outlet); router.setRoutes(routes); } }