Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 385 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 385 Bytes

Simple Lit Store

Usage

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()
   }
}