Skip to content

About

simple router for Lit apps.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages