Skip to content

A lightweight client-side router built with webcomponents.

License

Notifications You must be signed in to change notification settings

emilbillberg/wc-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages