a web component router

A Router for web

Web router based on web components, ready for Polymer,jQuery,Vue and frameworks can use web-components

Install

npm i @fsx950223/web-router

HTML Usage

<web-router>
    <web-link route='3' href='1'>click to 1</web-link>
    <web-router>
        <web-link route='1' href='2'>click to 2</web-link>
    </web-router>
    <div route='2'>
        <web-link href='3?a=123'>click to 3</web-link>
    </div>
</web-router>
import '@fsx950223/web-router'

use by unpkg

<script src="https://unpkg.com/@fsx950223/web-router"></script>

Demo

npm run start

Install

Link to this version
ImportedReleased 25 November 2018MIT License
Framework Support
Browser Independent
Install with
npm install @fsx950223/web-router"@1.1.0"
Run the above npm command in your project folder. If you have any issues installing, please contact the author.
Release notes - Version 1.1.0

Dependencies

  • @polymer/lit-element#^0.6.3