Skip to content

It's a simple routing system that changes the viewport depending on the route given

License

Notifications You must be signed in to change notification settings

littleqairoes/qairoe-app-router

Repository files navigation

Published on webcomponents.org

qairoe-app-router

It's a simple routing system that changes the viewport depending on the route given

Installation

To include this, type:

$ bower install littleqairoes/qairoe-app-router

Usage

To use:

<qairoe-app-router parent-tag-name="custom-app-shell">
  <page-element-one route="/page"></page-element-one>
  <page-element-two route="/page/:id"></page-element-two>
  <page-element-three route="/page/:id/edit" auth></page-element-three>
  <page-element-four route="/page/:id/edit" auth="[[someBooleanValue]]"></page-element-four>
  <page-not-authorized route="not-authorized"></page-not-authorized>
  <page-not-found route="not-found"></page-not-found>
</qairoe-app-router>

Roadmap

See ROADMAP

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

History

  • v0.0.5: Added currentRoute and fixed some bugs

  • v0.0.1: Changed the whole behavior to follow what I've learned from @paullewis' router used in Supercharged

  • v0.0.0: Creation of repository and copying of reach-core-route element

Credits

Toni-Jan Keith Monserrat created this for his projects.

License

See LICENSE

About

It's a simple routing system that changes the viewport depending on the route given

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages