Skip to content
emilbillbergPublic

About

A lightweight client-side router built with web components.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

53 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Published on webcomponents.org

x-router

A lightweight client-side router built with webcomponents.

Install

bower install --save emilbillberg/x-router

Example

<x-router main>
    <x-route name="home" pattern="^/$"></x-route>
    <x-route name="signup" pattern="^/signup$"></x-route>
    <x-route name="schedule" pattern="^/schedule$"></x-route>
    <x-route name="info" pattern="^/info$"></x-route>
</x-router>

Usage

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your application locally.

polymer serve

Test

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.

polymer test

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

About

A lightweight client-side router built with web components.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages