Skip to content
emilbillbergPublic

About

A lightweight client-side router built with webcomponents.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

50 Commits

Folders and files

Repository files navigation

Published on webcomponents.org

wc-router

A lightweight client-side router built with webcomponents.

Install

bower install --save emilbillberg/wc-router

Example

<wc-router main>
    <wc-path name="home" pattern="^/$"></wc-path>
    <wc-path name="signup" pattern="^/signup$"></wc-path>
    <wc-path name="schedule" pattern="^/schedule$"></wc-path>
    <wc-path name="info" pattern="^/info$"></wc-path>
</wc-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 webcomponents.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages