Skip to content

yevmel/simple-lit-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

simple router for Lit apps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published