single.page.application.router
v1.2.4
Published
This is a SPA router and container element for internal use only. It suppresses all hyperlink on the page and use pushState to implement SPA, and when state changes, it maps its content to specified custom element.
Downloads
3
Readme
Usage
<link rel="import" href="/*/single.page.application.router/single.page.application.router.html" />
<single-page-application-router>
<single-page-application-route data-pattern="/index.html" data-element="page-index"></single-page-application-route>
<single-page-application-route data-pattern="/" data-element="page-index"></single-page-application-route>
<single-page-application-route data-pattern="/t/" data-element="page-thing"></single-page-application-route>
</single-page-application-router>