It's a simple routing system that changes the viewport depending on the route given
To include this, type:
$ bower install littleqairoes/qairoe-app-router
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>
See ROADMAP
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
-
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
Toni-Jan Keith Monserrat created this for his projects.
See LICENSE